MusicSequence and virtual sources...
MusicSequence and virtual sources...
- Subject: MusicSequence and virtual sources...
- From: Craig Bakalian <email@hidden>
- Date: Mon, 5 Apr 2004 12:40:58 -0400
Hi J Hall,
I think your code below needs to do a
MusicPlayerSetSequence(player,sequence); before you do a
MusicPlayerStart(player); However, I can't tell if you got it in your
code from the sample below ...
Craig Bakalian
www.eThinkingCap.com
MIDIEndpointRef reaktor = NULL;
OSStatus sourcecreateerr = MIDISourceCreate(client,
CFSTR("MusicPlayerTest"), &reaktor);
if (sourcecreateerr)
NSLog(@"sourcecreateerr: %i", sourcecreateerr);
MusicPlayer player;
MusicSequence sequence;
// code to init player, sequence, then load SMF, etc...
OSStatus setEndErr = MusicSequenceSetMIDIEndpoint (sequence, reaktor);
if (setEndErr)
NSLog(@"setEndErr: %i", setEndErr);
OSStatus prerollerr = MusicPlayerPreroll(player);
if (prerollerr)
NSLog(@"prerollerr: %i", prerollerr);
MusicPlayerStart (player);
_______________________________________________
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.