• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MusicSequence and virtual sources...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >MusicSequence and virtual sources... (From: Craig Bakalian <email@hidden>)

  • Prev by Date: Re: Asynchronous Audio Again
  • Next by Date: Re: Audio threads scheduling
  • Previous by thread: MusicSequence and virtual sources...
  • Next by thread: Re: coreaudio-api digest, Vol 2 #1129 - 7 msgs
  • Index(es):
    • Date
    • Thread