objective c - record live streaming audio -


i'm making app has play , record streaming audio internet on ipad. streaming of audio done, have come recording part , don't have idea on how proceed.

could give me hint??? idea? have play while simultaneously recording aac or mp3.

thanks.

you'll need use lower-level audioqueue api, , use audiosession api set audio session.

then you'll need fill out audiostreambasicdescription struct , create new input queue audioqueuenewinput() , include callback function handling input buffers.

and you'll need create 3 buffers using audioqueueallocatebuffer() , audioqueueenqueuebuffer(). , ready call audioqueuestart(). should handle audio session interruptions, , handle stopping audio queue.

that stream of buffers containing uncompressed 16-bit integer pcm audio data. still need compress data, can of worms involves using audioconverter api, haven't done on iphone os don't know work there.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -