• 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: MusicSequenceSetMIDIEndpoint Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MusicSequenceSetMIDIEndpoint Question


  • Subject: Re: MusicSequenceSetMIDIEndpoint Question
  • From: Peter Zegelin <email@hidden>
  • Date: Thu, 19 Feb 2004 15:57:43 +1100

On Wednesday, February 18, 2004, at 05:00 PM, email@hidden wrote:
I'm using the MusicPlayer API to play midi files and have a question
about changing the audio destination. Note that I am not using any
AUGraph functions - just the default. I have an external device that I
can detect with MIDIGetNumberOfDestinations and MIDIGetDestination.
When my player first starts up the midi sequence plays through the
built in synthesizer and I can change to the external device using
MusicSequenceSetMIDIEndpoint however I can't see a way to change the
destination back to the internal synthesizer. So could someone kindly
tell me:

How do you change the destination back to the internal sythesizer?

You have to have the sequence play to a graph (the sequence creates a
default graph with a MusicDevice AU in it (the DLS synth))... So, if
you set it to an endpoint, you'd have to reset it to a graph with a dls
synth.

I have found that to change the destination to the external device
while the sequence is playing, I have to Stop the MusicPlayer, set the
endpoint with MusicSequenceSetMIDIEndpoint, call MusicPlayerPreroll
and then start the Player again. Is this the correct way to do it?

Yes


On a related note is there any particular reason why the internal
synthesizer isn't counted in MIDIGetNumberOfDestinations? I get 1 (for
the external device) but I would have thought it would be 2 (external
and internal).

Its an Audio Unit, not a MIDI Endpoint

OK thanks! I think I've got it sort of working now. Part of the problem was that I was referring to old documentation (CoreAudio.pdf ~c2000) and I'm a complete newbie at this.

Peter
_______________________________________________
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.

  • Prev by Date: MusicSequenceReverse Question
  • Next by Date: AudioDeviceGetCurrentTime...
  • Previous by thread: Re: MusicSequenceSetMIDIEndpoint Question
  • Next by thread: Logical lpcm format.
  • Index(es):
    • Date
    • Thread