• 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
AudioQueueNewInput: how to adjust callback rate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioQueueNewInput: how to adjust callback rate?


  • Subject: AudioQueueNewInput: how to adjust callback rate?
  • From: "Jeremy Friesner" <email@hidden>
  • Date: Tue, 20 May 2008 06:44:28 -0700

Hi all,

I've been playing around with using Leopard's AudioQueue API to record incoming data (both on the iPhone simulator and on regular MacOS/X) and it seems to be mostly working, but I do have one question:  is there any way to adjust the timing/frequency of when my audio callback function is called?  It seems that it gets called about once or twice a second, no matter what I do.  I'd like to have it be called more often, since I update my app's GUI based on the audio data received, and the updates would look smoother and nicer if they happened more often.

I thought I would be able to increase the frequency of the callbacks by using smaller audio buffers, but the AudioQueue engine outsmarted me... with small buffers (e.g. just a few thousand samples at 44.1kHz) my callback still gets called at intervals of once of twice a second, but now when it does get called, it gets called several times in immediate succession.

So, any way to adjust this?  Ideally I'd like my callback to be called at a steady rate, e.g. exactly once every 100ms.

Thanks,
Jeremy

 _______________________________________________
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: AudioQueueNewInput: how to adjust callback rate?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: ExtAudioFileRead fails after reaching EOF, despite new seek position
  • Next by Date: Re: AudioQueueNewInput: how to adjust callback rate?
  • Previous by thread: Re: Multiple AUs in a bundle revisited
  • Next by thread: Re: AudioQueueNewInput: how to adjust callback rate?
  • Index(es):
    • Date
    • Thread