IOProc and AudioStreams
IOProc and AudioStreams
- Subject: IOProc and AudioStreams
- From: Russell Edwards <email@hidden>
- Date: Sat, 4 Oct 2008 14:28:00 +0100
Hello again all.
Firstly thanks to those that replied to my previous thread. Having
got that little bit of code going i've now started to write code to
get audio data form my audio card; and have successfully tied myself
in knots.
As I said in my previous thread I'm using the old audio on os x guide
form 2001 as this is the only documentation that I have managed to
find that mentions the HAL in any detail other than "the HAL exists
but we want you to use audio units (AUHAL)". If i have missed some
really obvious documentation I apologize, but can you please point me
to it.
I think I understand the encapsulation behind Audio Streams my
problem comes in creating them, and then getting data from them? From
what I understand all audio data is presented to an IOProc for
processing.
As an example lets say my application needs a mono input on channel 1
and a stereo input on channels 3,4. And a stereo output on channels
1,2 and two mono outputs on channels 3, 4.
I know how to find the hardware and register an IOProc (if that is
required) with my chosen audio device. But how do I go about creating
the two input streams and 3 output streams and then telling them to
send their data to the IOProc? If of cause that is how you do it? Or
would you just create a 3 channel input stream and a 4 channel
output? Or something completely different again?
Another problem comes in the IOProc so far I have only found the
ability to add an IOProc to a device and not a stream. If this is the
case I take it that the data too and from each device from all the
streams is presented in the AudioBufferLists passed too and from the
IOProc as separate buffers? But how do I know which buffer
corresponds to which stream?
Many Thanks Again
Russell Edwards
_______________________________________________
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