midi and soundbank.gm

hi there,

if you want to play midi music in your game you need a soundbank file (soundbank.gm) which ships with the jdk but not with the jre. my question: can i ship the soundbank.gm file with my game or are there any licensing issues? the file is also available for download at http://java.sun.com/products/java-media/sound/soundbanks.html
, so i think it should be okay to include it in my download. am i right?

greets,
verence

You can load a soundbank and provide it to the synthesizer.

Soundbank sb = MidiSystem.getSoundbank(new File(“soundbank.gm”));
synthesizer.loadInstruments(sb);

You’ll need a try catch block, in case the soundbank format isn’t supported.

Regards,
Aaron R>