Re: coreaudio-api digest, Vol 2 #239 - 3 msgs
Re: coreaudio-api digest, Vol 2 #239 - 3 msgs
- Subject: Re: coreaudio-api digest, Vol 2 #239 - 3 msgs
- From: Craig Bakalian <email@hidden>
- Date: Sat, 7 Sep 2002 04:34:40 -0400
Hi Luke,
Yes, I understand this. Yet my app is going to loop through the
MIDISetup.getNumberOfSources(); and establish a list box for the user to
select blah, blah, blah... I was hoping to make an algorithm in the
play button, or before the play button that configures the created
sequence to send data to either javax.sound.midi, an AUGraph,
MusicPlayer, and midi hardware on usb ports. So, how does the
MidiSequence.setAUGraph(AUGraph inGraph) and
MidiSequence.setMIDIEndpoint(MIDIEndpoint inEndpoint) work. Are they
for receiving midi data into the sequence's tracks or sending data from
the sequence's tracks?
I realize that I can skip the AUGraph and send data to the
MusicPlayer now. But what about sending data from a MidiSequence to and
Endpoint?
Craig Bakalian
On Saturday, September 7, 2002, at 01:00 AM, coreaudio-api-
email@hidden wrote:
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.