Play and Transcode AACP audio stream
Play and Transcode AACP audio stream
- Subject: Play and Transcode AACP audio stream
- From: Abhinav Tyagi <email@hidden>
- Date: Wed, 2 Jun 2010 03:33:25 +0530
My objective is to acquire data from online radio station and transcode it to uncompressed wave samples. Transcoding is essential as the audio needs to be played on another device which has limited processing power and memory and hence cant do much processing.
I am able to hit mp3 radio station urls using NSURLConnection. Then I am Calling AudioFileStreamParseBytes() for the data received from theConnection. The parser then calls the MyPacketProc() callback that I have provided while creating AudioFilestreamID using the AudioFileStreamOpen().
In case of mp3, I am able to meet the objective.
But when i tried to hit the iTunes internet radio stations by taking the station url from the iTunes xml, the AudioFileStreamParseBytes() Api failed. I can see the logs for didReceiveData notification for the NSURLConnection that i created for getting data.
After saving the data received to a disc file, TextEdit revealed that content as audio/aacp in th very begining of the file.
The AudioFileStreamParseBytes fails when the aacp stream url is given.
I expected aac is the Apple native so aacp audio streams should play easily compared to mp3 streams but the experience was totally different. Can anybody help me how to play and transcode the aacp streams???
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden