Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Problem with AudioQueuePause/AudioQueueStart for recording
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with AudioQueuePause/AudioQueueStart for recording



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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.