• 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
Re: AudioQueue: detecting buffer underrun (again...)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioQueue: detecting buffer underrun (again...)


  • Subject: Re: AudioQueue: detecting buffer underrun (again...)
  • From: Brett George <email@hidden>
  • Date: Sun, 25 May 2008 23:30:11 -0700

Jens Alfke wrote:
My workaround for all of this has been to ignore the returned mSampleTime, and synthesize my own equivalent based on the mHostTime.

I'm seeing my own problems with AudioQueueGetCurrentTime. Did you ever figure this out?


I occasionally see it fail when I call that function in the Input callback. It fails with code "kAudioQueueErr_InvalidRunState", which is defined as "The queue is running but the function can only operate on the queue when it is stopped, or vice versa.". However, I receive this both when the Queue is running and when it has stopped.

Another thing I have seen, is that the data returned in mSampleTime is a very large numer, but the mFlags are still showing that mSampleTime is valid (it returns 0x7)

Othertimes, it works fine. I have yet to figure out why it works in some situations and not in others.

Brett.
_______________________________________________
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: AudioQueue: detecting buffer underrun (again...)
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: rendering output to a file
  • Next by Date: Recording sample
  • Previous by thread: Re: cocoa UI in aulab?
  • Next by thread: Re: AudioQueue: detecting buffer underrun (again...)
  • Index(es):
    • Date
    • Thread