Re: Interleaving and AudioBufferList woes
Re: Interleaving and AudioBufferList woes
- Subject: Re: Interleaving and AudioBufferList woes
- From: William Stewart <email@hidden>
- Date: Wed, 06 Oct 2004 15:18:22 -0700
If you're talking directly to the HAL (AudioDevice) then you have to be
prepared for any eventuality. This is a lot of work and unnecessary in many
cases, instead you can use one of the ouput units (auhal, default output)...
In that instance, you can set the format you have (it can be interleaved,
and it can be int) (by default it will be de-interleaved and float). You
just tell the output unit what format you are giving it and it will work.
Bill
On 6/10/04 2:24 PM, "Malcolm Haylock" <email@hidden> wrote:
> Hi All,
>
> I have a CoreAudio program and AudioUnit that have both run into the same
> problem.
>
> The core rendering engine of both the program and AU creates 8 interleaved
> channels of signed 32-bit integer:
>
> SInt32 intBuffer[bufferSize][8]
>
> Both the program and AU in each of their rendering cycles (Render() in the
> AU and an AudioDeviceIOProc() in the program) receive an AudioBufferList
> to output the data.
>
> My question is this: is there any consistency to how the buffers will be
> organised in the AudioBufferList? Or do I have to allow for all possible
> combinations e.g.
> 1) 1 buffer of 8 interleaved channels
> 2) 2 buffers of 4 interleaved channels
> 3) 4 buffers of 2 interleaved channels
> 4) 8 buffers of 1 channel
>
>> From some experimentation it seems they will always be non-interleaved
> (case 4 above) but is this always the case? Is it different for an AU and
> a program?
>
> Thanks,
> Malcolm Haylock
> _______________________________________________
> 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
--
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement [GSV]
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
__________________________________________________________________________
_______________________________________________
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