Which Java Audio/MIDI API to use?
Which Java Audio/MIDI API to use?
- Subject: Which Java Audio/MIDI API to use?
- From: Scott Ruda <email@hidden>
- Date: Sun, 12 Aug 2001 00:27:58 -0700
[I'm reposting this because I didn't get any response last time and I
figured that might be because it was doubled up in another post (that did
get answered - thank you)]
I am unable to access my MIDISport USB MIDI device using the Sun Java2 MIDI
classes. Is there a driver that enables that device for I/O using
those interfaces? I think I would prefer to use the Sun API over the
Apple/Cocoa one since it <should> be cross-platform on all Java2 platforms
(I need to support Win* also ;-(). Is there an Apple recommendation on which
API to use and why?
I am currently shipping my product using a JNI interface to MIDI (it
abstracts OMS and MM System using a common API in shared libraries), and
probably going to implement a Factory type interface to dynamically
choose an appropriate transport to support Java2, OS 9/X and Win, so I
could use the Apple API if I had to, but it would be simpler to just
switch between the JNI interface for OS 9 and the Sun Java2 MIDI
interface for all others. Any suggestions are appreciated.
Thanks,
Scott