Re: Capturing audio with playthrough question (ComplexPlayThrough sample)
Re: Capturing audio with playthrough question (ComplexPlayThrough sample)
- Subject: Re: Capturing audio with playthrough question (ComplexPlayThrough sample)
- From: William Stewart <email@hidden>
- Date: Tue, 13 Mar 2007 12:21:57 -0700
On 05/03/2007, at 3:08 AM, Mark Munte wrote:
Hi list,
these are my first steps in Core Audio and I would appreciate some
advice.
What I would like to do is capture audio from the built in "Line
in" device (as buffers) and also play the audio back while
capturing on the default output device.
Now, I've read TN2091 (http://developer.apple.com/technotes/tn2002/
tn2091.html) and my understanding is that since on the newer Intel
Macs there are separate devices for input and output, there's no
way of doing a "simple play through", right?
Actually there is, and this is how AULab solves this problem. In
Audio MIDI Setup you can create an Aggregate Device - so for Intel
you do this and then you have the input and output set to the same
sample rate. A very simple playthrough in software would take the
AUHAL unit and just connect the output of bus 1 to the input of bus 0
(and have it point to the aggregate device)
There have been some emails on this list about creating an aggregate
device
Bill
Now, I've downloaded the ComplexPlayThrough sample and I am
wondering if I need the Varispeed Unit fo what I'm trying to
accomplish. Can't I just setup the input and output device with the
same stream description and just pass on the incoming buffers to
the output device? Is there any good reason to not do it this way?
Also, I've setup notifications for device steam changes, and I see
that other apps can change my device's stream description while I
am capturing. Is there a way to avoid that, can I take exclusive
ownership of the device(s)?
Thanks
Mark
_______________________________________________
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
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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