Re: Changing size of output AudioBuffer to be used in IOProcess - newbie
Re: Changing size of output AudioBuffer to be used in IOProcess - newbie
- Subject: Re: Changing size of output AudioBuffer to be used in IOProcess - newbie
- From: <email@hidden>
- Date: Sun, 16 Feb 2003 11:39:09 -0700 (MST)
From: David Duncan <email@hidden>
Date: Fri, 14 Feb 2003 10:48:57 -0500
On Friday, February 14, 2003, at 10:48 AM, David Duncan wrote:
>
First of all, you may find it far easier to use
>
com.apple.audio.units.AudioDeviceOutputUnit instead of using
>
AudioDevices directly. First it opens you to the world of AudioUnits
>
(which is lovely indeed =) and second it abstracts all the housekeeping
>
you need to do with Audio Devices.
Thank you, thank you, thank you. That was just the advice I needed to get
me going in the right direction. No kidding AudioUnits are lovely! Most
things are working just fine now. I created an interleaver audiounit with
six mono input buses which each use an inputCallback. I have set it up so
that the first bus gets the data from the audioConverter (which gets a
chunk from the file), and the following buses copy that filechunk into
their AudioBuffers. The output of the interleaver is connected to the input
of the OutputAudioUnit. The output is a 6 channel interleaved stream that
is going into my EMI 2|6.
If anyone wants any sample code in java (as I know it is very sparse!) just
let me know!
Also I am still not too sure if copying a chunk of memory like I did in an
IOProc is the best way to do this (although it seems to work just fine), so
if anyone can think of anything that I might have overlooked, or any
optimizations that would be better, any ideas would be great.
Thanks again David.
Melissa
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.