简体   繁体   English

使用OpenAL在iOS上进行离线录音

[英]Offline audio recording on iOS with OpenAL

I'm using openAL to play sound samples at specific intervals and I want to export this to file (be it caf or aac or whatever). 我正在使用openAL以特定的间隔播放声音样本,我想将其导出到文件(无论是caf或aac还是其他)。 How can I do this with OpenAL without having my samples played in real time through the speakers/headphones? 如何在没有通过扬声器/耳机实时播放样本的情况下使用OpenAL进行此操作?

If you're talking about exporting your musical score as a complete audio piece, there's nothing in OpenAL that will do such a thing. 如果你正在谈论将你的乐谱作为一个完整的音频片段出口,那么OpenAL中没有任何东西会做这样的事情。

The only way I can think of would be to use Audio Units for playback, and use it offline mode to dump to a file. 我能想到的唯一方法是使用音频单元进行播放,并使用离线模式转储到文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM