• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem with AudioQueuePause/AudioQueueStart for recording
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Problem with AudioQueuePause/AudioQueueStart for recording
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: Application Level Mute
  • Next by Date: Re: Spurious MIDI note-on messages in AU
  • Previous by thread: AUCarbonViewBase : embedding controls in non-composit windows
  • Next by thread: Re: Problem with AudioQueuePause/AudioQueueStart for recording
  • Index(es):
    • Date
    • Thread