• 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
AudioDevice Callback Frequency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioDevice Callback Frequency


  • Subject: AudioDevice Callback Frequency
  • From: Nick Nallick <email@hidden>
  • Date: Thu, 4 Oct 2007 11:13:07 -0600

I'm using a driver very similar to the AudioReflector sample to capture the machine's audio output, package it and send it to external hardware for output. Functionally this is similar to what Airport Express does. My hardware device expects 40 ms packets of audio sampled at 22.05 kHz (i.e., 882 samples per packet). My experience is that my AudioDevice callback is being called with 256 samples at a time (i.e., 11.61 ms at 22.05 kHz). I'm currently accumulating this data into 40 ms packets and sending it. Unfortunately this introduces some latency since I generally have to wait longer than 40 ms for that much data (e.g., the first packet is delayed by 6.44 ms but this varies).

Is there any way to tell CoreAudio how often to call my callback, or some better way to do this?

Thanks,
Nick Nallick
_______________________________________________
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: AudioDevice Callback Frequency
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: iTunes interface
  • Next by Date: How to get AU in Mono-Stereo menu?
  • Previous by thread: Re: iTunes interface
  • Next by thread: Re: AudioDevice Callback Frequency
  • Index(es):
    • Date
    • Thread