MidiNotification help
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.