简体   繁体   中英

ios 7 - AVAudioRecorder or AudioToolbox for Record and Play - Not as file - as buffer

Untill ios6, i used to have audiotoolbox to have record and play (simultaneously) audio using buffers.

I think, 'AVAudioRecorder' does recording into a 'file', not in a 'buffer'.

in current ios 7, since 'audiotoolbox' is deprecated, i'm forced to use 'AVAudioRecorder'.

But the issue is, how to replace the 'file' output to 'buffer' output.

You can use audio queue to record, I have written a recorder , this is the demo , you can have a try.

Though I write the data to file, but you can copy it into the buffer as you please.

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