简体   繁体   中英

how to get 3sn of audio buffer ios

how can I get 3sn of samples of an audio that is being recorded. I have used RemoteIO audiounit and it brings 512 samples and it is 10 milisecond. I need total 3sec of samples? Can you give me an idea how to do it .

here is my another post with details of my code Concatenating Audio Buffers in ObjectiveC

my worst sceneario will be recording the audio in a file then get its samples. I dont want to go with this.

should I use AudioQueue ? Any Advice?

I really need help. thanks

将缓冲区(通过“音频单元”回调提供给您)保存到数组(C数组),并在每512个输入数据样本之后将用于保存数据的数组的索引增加512。

I have append the frames that came with each render like hotpaw2 said. now you can find the detailed codes, how I applied buffers in my this post/question Concatenating Audio Buffers in ObjectiveC

thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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