AudioDevice Callback Frequency
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