Package org.jjazz.midi.api.sequencer
Interface ReferenceCountingDevice
public interface ReferenceCountingDevice
MidiDevice that can use reference counting for open/close. This interface is intended to be used by MidiSystem.getTransmitter()
and MidiSystem.getReceiver().
- Author:
- Matthias Pfisterer
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve a Receiver that opens the device implicitly.Retrieve a Transmitter that opens the device implicitly.
-
Method Details
-
getReceiverReferenceCounting
Retrieve a Receiver that opens the device implicitly. This method is similar to MidiDevice.getReceiver(). However, by calling this one, the device is opened implicitly. This is needed by MidiSystem.getReceiver().- Throws:
MidiUnavailableException
-
getTransmitterReferenceCounting
Retrieve a Transmitter that opens the device implicitly. This method is similar to MidiDevice.getTransmitter(). However, by calling this one, the device is opened implicitly. This is needed by MidiSystem.getTransmitter().- Throws:
MidiUnavailableException
-