Re: MusicSequence.setAUGraph(AUGraph mySynth)
Re: MusicSequence.setAUGraph(AUGraph mySynth)
- Subject: Re: MusicSequence.setAUGraph(AUGraph mySynth)
- From: Luke Bellandi <email@hidden>
- Date: Fri, 06 Sep 2002 11:46:05 -0700
>
Date: Fri, 6 Sep 2002 06:18:09 -0400
>
Subject: MusicSequence.setAUGraph(AUGraph mySynth)
>
From: Craig Bakalian <email@hidden>
>
To: email@hidden
>
>
Hi,
>
I am really starting the get the core audio api, and understand the
>
possibilities. It appears to be damn good. Yet, After I create my
>
MusicSequence, add Tracks to it, add midi events to the tracks.... will
>
the method myMusicSequence.setAUGraph(AUGraph mySyth) start the
>
myMusicSequence sounding out of the speaker of this iMac I am typing
>
at? Or, what starts a MusicSequence playing in a MusicDevice?
>
>
>
Craig Bakalian
Hi Craig,
You'll need to create a MusicPlayer, set its sequence to the sequence you've
created, preroll the player, and then call MusicPlayerStart() to start
playback. MusicPlayer provides transport control for the MusicSequence
media (think of it like the MusicPlayer is a CD Player and the MusicSequence
is a CD.) There's a corresponding MusicPlayerStop() call when you wish to
stop playback.
The sequence of calls should look like this:
NewMusicPlayer()
MusicPlayerSetSequence()
MusicPlayerPreroll()
MusicPlayerStart()
See <AudioToolbox/MusicPlayer.h> for the functions.
The MusicPlayer should actually set up a default graph for you
(DLSMusicDevice connected to DefaultOutputUnit) if you don't specify a graph
for the MusicSequence you've given it. it's a convenience.
Best,
Luke Bellandi
CoreAudio
_______________________________________________
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.