Re: Playing Multiple AUNodes in a AUGraph
Re: Playing Multiple AUNodes in a AUGraph
- Subject: Re: Playing Multiple AUNodes in a AUGraph
- From: Robert Grant <email@hidden>
- Date: Wed, 23 Oct 2002 11:08:35 -0400
Hi Craig,
I'll try and answer some of your questions as I've done a bit with
AUGraphs.
On Wednesday, October 23, 2002, at 10:29 AM, Craig Bakalian wrote:
Hi,
I am heavily into the design phase. An AUGraph is created. In a gui
a user creates a music part or track of which they may enter music
data. This music part will have an associated AUNode that will be
fired up by a MusicPlayer with a preroll and start, where the
individual tracks have had MusicTrackSetDestNode(MusicTrack inTrack,
AUNode inNode) applied to them. Yet, the AUGraph would have to have a
collection of AUNodes starting with a kAudioUnitType_MusicDevice, a
bunch of kAudioUnitType_Effect subTypes which are chained together,
and then end the whole design with a kAudioUnitType_Output for each
music part or track...
I don't believe you can have multiple OutputUnits in the same graph.
However there's
no limit to the number of graphs in an app. My Rax app has a graph per
rack.
Another approach is to use subgraphs and then mix them together before
sending to
the result to the Output. However I believe that the general purpose
mixer is still a
V1 unit? FindUnits doesn't get me any matches with a component type of
kAudioUnitType_Mixer.
And my question is, does the above design require that
MusicTrackSetDestNode(MusicTrack inTrack, AUNode, inNode) have the
AUNode with the ComponentDescription of kAudioType_MusicDevice as its
inNode?
This was certainly the case in AU V1, but now with MIDI-enabled effects
you should
be able to set a MIDI effect as a Dest Node.
Furthermore, will the final sound output have a quality where each
music part has its own encapsulated and "uniquely settable" effects,
for example music part one could have a dry reverb setting and music
part two could have a wet reverb setting?
If you have separate graphs or subgraphs (and the effects are in the
subgraph) for each track then yes.
HTH,
Robert.
_______________________________________________
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.