Audio recording error kAudioQueueErr_CannotStart on iPhone OS 3.0
Posted
by Jeremy Borden
on Stack Overflow
See other posts from Stack Overflow
or by Jeremy Borden
Published on 2009-07-04T03:22:14Z
Indexed on
2010/05/01
5:17 UTC
Read the original article
Hit count: 824
I'm working on a couple different iphone apps that both record and play sounds concurrently. Think multitrack mixing... play one sound a save it then listen to that sound while recording the next sound to another file. My mechanism for this has been to start up two different audio queues, one for recording, and one for playing.
This was working A-OK until the release of OS 3.0... Since then, however, the following happens:
If I start the recording queue first, it supposedly starts fine, but the call to AudioQueueStart for the playback queue returns kAudioQueueErr_CannotStart.
If I start the playback queue first, it also supposedly starts fine, but the call to AudioQueueStart for the record queue returns the same error, kAudioQueueErr_CannotStart.
Anyone have any luck debugging this error? Seems like maybe the two queues are stomping on each other's memory or something? The official description is: "The audio queue has encountered a problem and cannot start." Not super helpful...
Jeremy
© Stack Overflow or respective owner