• 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: MIDIGetNumberOfDestinations()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MIDIGetNumberOfDestinations()


  • Subject: Re: MIDIGetNumberOfDestinations()
  • From: Philippe Wicker <email@hidden>
  • Date: Wed, 22 Jan 2003 20:26:30 +0100

On Wednesday, January 22, 2003, at 01:28 PM, Vigour Vigour wrote:

> I have made a couple of experiments now and it seems that destination
> 17 is all destinations at the same time. Is that a feature of > CoreMIDI?
>
> Does that mean that If I want to send the same message to all ports
> (for example a reset command) the only thing I must do is to send my
> message to the last destination?
>
> Example 1: I have 1 Studio 4 with 8 ports, destination 9 = all ports
> Example 2: I have 2 Studio 4 with 16 ports, destination 17 = all ports
>
> Please correct me if i am wrong.

You could print on the console the name of the endpoints. The following
code is a way to do this.

void PrintEndpointName (MIDIEndpointRef inEndpoint)
{
OSStatus status ;

// Get the endpoint name and save it
CFStringRef cfname ;
status = MIDIObjectGetStringProperty (inEndpoint, kMIDIPropertyName,
&cfname) ;
if (status != 0) { /* error: do something */ }
char the_name[256] ;
bool ok = CFStringGetCString (cfname, the_name, 255,
CFStringGetSystemEncoding()) ;
CFRelease(cfname) ;
printf("endpoint name \"%s\"\n", the_name) ;
}

Calling this procedure for each destination endpoint will show you who
they are and maybe give the answer to your question.

Best regards.

Philippe Wicker
email@hidden
_______________________________________________
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: 
 >Re: MIDIGetNumberOfDestinations() (From: "Vigour Vigour" <email@hidden>)

  • Prev by Date: Re: AUView calling SizeWindow?
  • Next by Date: Re: AUView calling SizeWindow?
  • Previous by thread: Re: MIDIGetNumberOfDestinations()
  • Next by thread: Re: MIDIGetNumberOfDestinations()
  • Index(es):
    • Date
    • Thread