mattgallagher / AudioStreamer

A streaming audio player class (AudioStreamer) for Mac OS X and iPhone.
http://cocoawithlove.com
1.93k stars 553 forks source link

Audioqueue failure #27

Open ergodus opened 13 years ago

ergodus commented 13 years ago

at very random times the audiostreamer crashes with a audioqueue could not start error. The app buffers for a long time and then give error message. But after that the app cannot be started anymore. If tried to debug that and found out that in the second run the errorCode is not 0, so the runloopSouldExit goes to Yes and the play immediately return to stopped :(

Why does the audioqueue not start ?

Why is de goto cleanup in the startinternal ? couldn't we call the cleanup after an error to reset everything to proper states ?