Closed unformatt closed 11 years ago
This may be a race in starting/stopping playing a stream. Were you on a slow connection or did you hit any buttons quickly back to back? Or was this just a situation where it loaded and immediately died?
It loaded the stream and crashed because of the assert - AudioQueueNewOutput is returning error kAudioFormatUnsupportedDataFormatError. So I thought the default URL in the XIB was bad. I tried changing it to a good URL which got rid of the error but it doesn't actually play. I'll keep poking around.
Putting in a URL to an mp3 works fine, good news there. Also enabled LOG which helped. Tried an m4a and not getting any playback although it hits the server and detects the correct file format.
Ok - Seemed to be a matter of my m4a not having the metadata at the beginning of the file. Conclusion: Try to find a different streaming URL for the iPhone example if you have time.
Hi,
I checked out your code, ran the example project and got this error:
Assertion failed: (audioQueue != NULL), function -[AudioStreamer handlePacket:desc:], file AudioStreamer/AudioStreamer.m, line 1118.
I saw your not an iOS guy but was wondering if you had any idears.
Thanks