Re: multiple track synthesizer problem
Re: multiple track synthesizer problem
- Subject: Re: multiple track synthesizer problem
- From: Christopher Corbell <email@hidden>
- Date: Mon, 30 Dec 2002 09:50:03 -0800
On Sunday, December 29, 2002, at 01:07 AM, Zak Stone wrote:
Hello,
I want to connect several MusicTracks to a DLSSynth AUNode. Is that
possible, or do I have to make a synth node for every track, connect
all of the synth nodes to a mixer, and connect the mixer to the
output? If so, how does one actually connect multiple nodes to the
mixer?
Thanks,
Zak Stone
When you add a music track to a MusicSequence and use the MusicPlayer
API's, the tracks are automatically
attached to a default MusicDevice (DLSSynth). If you want to use
multiple music devices for different tracks,
you have to manage their creation in the AUGraph yourself, re-associate
the tracks with each device's node,
and connect the MusicDevice nodes to a mixer using the AUGraph APIs.
Connecting music devices to channels in a mixer is straightforward
using AUGraphConnectNodeInput().
The parameters to this call for a music device node and a stereo mixer
node would be
AUGraphConnectNodeInput( theGraph, dlsNode, 0, mixerNode,
trackIndex);
One more tip learned from help others provided in past postings: turn
off the internal-reverb
for each of your multiple MusicDevice objects or you'll max-out CPU
usage.
Example to check out:
CoreAudio/Services/AUViewTest (esp. AUViewTest::BuildGraph() and
AUViewTest::BuildSequence())
Hope this helps,
Christopher
_______________________________________________
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.