MusicSequence problems
MusicSequence problems
- Subject: MusicSequence problems
- From: Pete Yandell <email@hidden>
- Date: Wed, 3 Jul 2002 17:56:11 +1000
I've started playing with the MusicSequence APIs and am running into
some problems.
I'm trying to load up a MIDI file and then play it through a MIDI
endpoint.
The code looks like this:
MIDIEndpointRef endpoint = ...; // Code to get my MIDI
destination in here
MusicPlayer player;
MusicSequence sequence;
NewMusicPlayer (&player);
NewMusicSequence (&sequence);
MusicPlayerSetSequence (player, sequence);
MusicSequenceLoadSMF (sequence, &fileSpec); // fileSpec, of
course, points to my MIDI file
MusicSequenceSetMIDIEndpoint (sequence, endpoint);
MusicPlayerStart (player);
That all works well, except that only the first 18 MIDI events show up
at my endpoint! This happens whether I point the endpoint at my soft
synth (SimpleSynth) or at MIDI Monitor.
If I remove the MusicSequenceSetMIDIEndpoint line, everything plays just
fine.
Is there something obvious that I'm missing, or is this an Apple bug?
Pete Yandell
http://pete.yandell.com/
_______________________________________________
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.