Re: MusicSequence and virtual sources...
Re: MusicSequence and virtual sources...
- Subject: Re: MusicSequence and virtual sources...
- From: Jai Hall <email@hidden>
- Date: Mon, 05 Apr 2004 09:08:08 -0800
Good point. But, yes, I did. As I said, this code works if I choose a
destination recognized by the system such as my outboard sampler. However,
if I create the source, and call MusicSequenceSetMIDIEndpoint, it doesn't
work.
From: Craig Bakalian <email@hidden>
Date: Mon, 5 Apr 2004 12:40:58 -0400
To: email@hidden
Cc: email@hidden
Subject: MusicSequence and virtual sources...
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.