Audio streaming

Hi, I want to know if I can use core audio to do live audio streaming. I want to know how I can link to ice cast or a shout cast server. Thank U.

Yes, you may use the AudioFileStream parser and AudioQueue APIs. In fact, if you search for "AudioFileStream Shoutcast", you will find information and code from other sources using these APIs to do just that. Our canonical sample code for these APIs can be found here if you're interested in checking it out.


https://developer.apple.com/library/mac/samplecode/AudioFileStreamExample/Introduction/Intro.html

https://developer.apple.com/library/mac/samplecode/AudioQueueTools/Introduction/Intro.html


However, you may find it far easier to use higher level AVFoundation playback APIs instead of using Core Audio directly. AVFoundation has also defined metadata types specifically for Icecast/ShoutCAST streaming metadata as well. See AVMetadataFormat.h, CMFormatDescription.h and CMMetadata.h.


So, that does offer you a couple of choices.

Audio streaming
 
 
Q