Re: Problem using two connected graphs
Re: Problem using two connected graphs
- Subject: Re: Problem using two connected graphs
- From: William Stewart <email@hidden>
- Date: Tue, 31 Jan 2006 15:35:16 -0800
On 31/01/2006, at 2:42 PM, Christoph Teschner wrote:
I want play the output of the stereo mixer through the default output
and at the same time play either of the 2 input channels of the
stereo mixer through the system output.
This way I get different audio streams coming through speakers and
headphones for instance.
That depends.
If you actually have two different devices then you can do this. But
if you have just built-in hardware then you only have one device. So,
this duplication is mute at that point.
You should NOT be using the System Output device - this is a device
that is intended for system sounds like Alerts, UI Effect sounds, new
mail sounds, etc... Its not a general purpose destination for audio.
So, if you want to provide output to more than one device you should
provide your own device selection UI
If I want to render to 2 different output
devices what would be an alternative to creating a second graph?
Use the aggregate device services. You run a single I/O Proc but can
direct the output to different devices that are part of the
aggregate. You can experiment with this in AULab - create an
aggregate and use that as the target device for your AULab document.
You can see there how you can make a UI to target the different
channels of your document to the different channels of the device
(both for input and output). The underlying implementation of AULab
is a single AUGraph, with an AUHAL output unit that is targeted to
the selected device... (In AULab's debug menu you can even print the
session document to have a look at how we construct this). AULab can
be found in /Developer/Applications/Audio
Bill
thanks,
christoph
From: William Stewart <email@hidden>
To: Christoph Teschner <email@hidden>
CC: email@hidden
Subject: Re: Problem using two connected graphs
Date: Tue, 31 Jan 2006 12:08:45 -0800
You can't call across graphs like this - that is why we don't
provide an API in AUGraph to connect things into it that aren't
already a part of the graph.
Could you describe what exactly you are trying to accomplish and
we can perhaps suggest some better alternatives
Bill
On 31/01/2006, at 8:47 AM, Christoph Teschner wrote:
Hi,
I have problems using two connected graphs:
graph1 consists of AUFilePlayer -> splitter -> stereoMixer ->
defaultOutput
graph2 consist of stereoMixer -> systemOutput
I connect the second output of the splitter in graph1 to the
stereoMixer in graph2 (so the splitter acts as the source of
graph2).
This case works fine (the system output is identical to the
defaultOutput).
But when I add a timePitchAU or VariSpeedAU in front of the
splitter in graph1 the program crashes. When trying to add a
matrix reverb at the same position the program runs but produces
distorted sound.
Best regards
christoph
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
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
--
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