Re:relationships between javax.sound.midi and com.apple.audio.midi
Re:relationships between javax.sound.midi and com.apple.audio.midi
- Subject: Re:relationships between javax.sound.midi and com.apple.audio.midi
- From: Marc Pergand <email@hidden>
- Date: Sat, 3 Jan 2004 20:51:46 -0800
I agree with you, the Java CoreMidi documentation is sparse, in fact
there's none ! (even in C, the header files (.h) are the only doc
sources).
The CoreMidi adaptation to Java is just a quick method by method
implementation of the C counterpart (hence static) and lacks important
functionalities specialy in the MidiNotification, the only two methods
implemented are getMessageId and getMessageSize, I can't figure out how
to get the data linked to the message, in C the data structure for a
addRemove is:
struct MIDIObjectAddRemoveNotification {
MIDINotificationMessageID messageID;
ByteCount messageSize;
MIDIObjectRef parent;
MIDIObjectType parentType;
MIDIObjectRef child;
MIDIObjectType childType;
};
If I examine the memory just after the MidiNotification object, I can
see the messageId and messageSize values, but how to get a valid Java
object of the parent or child MIDIObjectRef ? As a result in Java, each
time you receive a notification, you have to rescan the all connections
to update the source and destinations endpoints.
One more point: it seems there is no way in java to retreive the
physical device a external device is attached to !( and until Panther
you can't get any endpoint at all !!)
My MidiClient class just waiting for a solution to display a
hierarchical view of the devices/external devices relationships.
I posted, some time ago, a question about this issue, with no response
[ and for general cocoa-java problems in the cocoa-dev list with no
more succhs :( ]
I thing Java is great alternative to ObjectiveC (much easier to program
in my opinion), but OK the Cocoa-Java programmers are perhaps not very
numerous and feedback maybe very sparse.
Please, Apple do more support to Cocoa-Java.
Best regards,
Marc Pergand
http://perso.wanadoo.fr/mpergand/
_______________________________________________
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.