Problem with AudioQueuePause/AudioQueueStart for recording
Problem with AudioQueuePause/AudioQueueStart for recording
- Subject: Problem with AudioQueuePause/AudioQueueStart for recording
- From: Craig Hopson <email@hidden>
- Date: Mon, 18 Aug 2008 16:45:54 -0600
Hi list,
I'm using AudioQueuePause/AudioQueueStart to implement pausing a
recording session. Simply pausing & (re)starting the recording is not
producing the results that I expected.
Here is a typical session:
Start recording for about 5 seconds.
Pause recording for about 5 seconds.
Resume recording for another 5 seconds.
Stop recording.
Using the simulator that accompanies the development environment for
Apple's new communications device,
on playback, I hear the first 5 seconds, followed by about the last
1/2 sec of the audio repeated, followed by the resumed audio. However,
when the same sequence is followed on the actual device, the repeated
audio is around 3 seconds. Why, once the audio data has been written
to the file, does it still remain in the buffer(s) to be written
again? I have tried using AudioQueueFlush, but to no effect.
So, is there a problem with my implementation, or is there a problem
with the AudioQueue? Do I need to manage the contents of the buffers
somehow when AudioQueuePause is called?
Thanks for any insight.
-Craig
_______________________________________________
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