A
Andrew
I don't get this, it was working before, but then my program
quasi-randomly stopped playing sound, and started instead of giving me
an error message:
javax.sound.midi.MidiUnavailableException: MIDI OUT transmitter not
available
at
com.sun.media.sound.AbstractMidiDevice.createTransmitter(AbstractMidiDevice.java:444)
at
com.sun.media.sound.AbstractMidiDevice.getTransmitter(AbstractMidiDevice.java:299)
I am trying to write a sound/music system for a game, and I want it to
be reusable for other programs that I make (probably other games). I
have created a Note class and a MidiKit class to do this. The Note
class stores channel, pitch, velocity, and duration info, and a
reference to a Receiver created by my Synthesizer object.
I used a system I found somewhere on the internet to find all of the
MidiDevices and removed everything that wasn't a synthesizer, giving me
only one device! If, however, the program finds more devices, it picks
the one with the highest value of getMaxPolyphony(). Nonetheless, I am
only getting one device, and it has a getMaxTransmitters value of zero
and an empty list for getTransmitters(). What can I do?
quasi-randomly stopped playing sound, and started instead of giving me
an error message:
javax.sound.midi.MidiUnavailableException: MIDI OUT transmitter not
available
at
com.sun.media.sound.AbstractMidiDevice.createTransmitter(AbstractMidiDevice.java:444)
at
com.sun.media.sound.AbstractMidiDevice.getTransmitter(AbstractMidiDevice.java:299)
I am trying to write a sound/music system for a game, and I want it to
be reusable for other programs that I make (probably other games). I
have created a Note class and a MidiKit class to do this. The Note
class stores channel, pitch, velocity, and duration info, and a
reference to a Receiver created by my Synthesizer object.
I used a system I found somewhere on the internet to find all of the
MidiDevices and removed everything that wasn't a synthesizer, giving me
only one device! If, however, the program finds more devices, it picks
the one with the highest value of getMaxPolyphony(). Nonetheless, I am
only getting one device, and it has a getMaxTransmitters value of zero
and an empty list for getTransmitters(). What can I do?