Re: IOProc - which buffer?
Re: IOProc - which buffer?
- Subject: Re: IOProc - which buffer?
- From: Jeff Moore <email@hidden>
- Date: Mon, 11 Jun 2001 12:48:19 -0700
on 6/9/01 10:44 PM, James McCartney <email@hidden> wrote:
>
Are we supposed to just start filling buffer zero and cycle through them, or
>
are we supposed to be getting the index of which buffer to fill from
>
somewhere?
The AudioBufferList passed to you in your IOProc represents all of the
currently active channels arranged in the order that corresponds to the
hardware buffers the driver is managing. They are all always valid. The HAL
doesn't pass you a channel or a buffer you can't use.
What you do with the data in the AudioBufferList is entirely up to you.
--
Jeff Moore
Core Audio
Apple