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

Re: AudioQueueNewInput: how to adjust callback rate?


  • Subject: Re: AudioQueueNewInput: how to adjust callback rate?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 20 May 2008 09:47:21 -0700

On 20 May '08, at 9:05 AM, Jeremy Friesner wrote:

I was using an NSTimer for mockup testing and that worked fine, but I don't just need the callbacks, I also need the audio data (ideally at <100ms latency).

If you that kind of latency, AudioQueue probably isn't your best bet. Its priority is simplicity, and part of that is letting you run your code on the main thread using runloop callbacks. That pretty much requires using a lot of buffering, because the runloop is cooperatively scheduled and it's not unusual for it to get blocked for a few seconds at a time due to user actions.


How can I get audio from the microphone without using an AudioQueue?

AudioUnits and background threads. I believe /Developer/Examples/ CoreAudio has sample code showing how to read audio input with AudioUnits. Unfortunately it's a lot harder than using an AudioQueue.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: William Stewart <email@hidden>
References: 
 >AudioQueueNewInput: how to adjust callback rate? (From: "Jeremy Friesner" <email@hidden>)
 >Re: AudioQueueNewInput: how to adjust callback rate? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: AudioQueueNewInput: how to adjust callback rate?
  • Next by Date: Re: AudioQueueNewInput: how to adjust callback rate?
  • Previous by thread: Re: AudioQueueNewInput: how to adjust callback rate?
  • Next by thread: Re: AudioQueueNewInput: how to adjust callback rate?
  • Index(es):
    • Date
    • Thread