Re: AudioDevice Callback Frequency
Re: AudioDevice Callback Frequency
- Subject: Re: AudioDevice Callback Frequency
- From: Jeff Moore <email@hidden>
- Date: Mon, 15 Oct 2007 18:11:51 -0700
Basically, the answer to your question is no. The driver has no
influence over the IO buffer size a client in user-space might choose.
On Oct 4, 2007, at 10:13 AM, Nick Nallick wrote:
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?
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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