• 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
MidiNotification help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MidiNotification help


  • Subject: MidiNotification help
  • From: "stephane - la poste" <email@hidden>
  • Date: Mon, 20 Jan 2003 12:01:04 +0100

Hello the list

I'm trying to get messages from the MidiNotification callback proc
declaration is like this :

typedef (*MIDINotifyProc) (const MIDINotification *message, void *refcon)

MIDINotification is a structure
this is the declaration

MIDINotification {
SInt32 messageID;
ByteCount messageSize;
// additional data may follw, depending on messageID
}

In my Callback, I have to cast the message structure to get information
about the changed Midi world (setup)..
new device added, removed.. etc..

I do like this :

SInt23 myID = message->messageID;

switch(myID)
{
case (constant for added device ??):
get the message datas ???...
break;
}

Ok, I think it's the way, but moreover this, there is a hole somewhere...
- preliminary document don't talk about the "additional data" structures...
- online doc (CoreMidi v1.3 ?) give a little help with infos about new
constants, but in my switch, none are catched !!!

Need a help for this...

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

  • Follow-Ups:
    • Re: MidiNotification help
      • From: Philippe Wicker <email@hidden>
  • Prev by Date: Zoyd goes preview beta
  • Next by Date: Spark XL Demo for AU testing
  • Previous by thread: Zoyd goes preview beta
  • Next by thread: Re: MidiNotification help
  • Index(es):
    • Date
    • Thread