Save This Page
Home » openjdk-7 » com.sun.media » sound » [javadoc | source]
com.sun.media.sound
public interface: ReferenceCountingDevice [javadoc | source]

All Known Implementing Classes:
    AbstractMidiDevice, SoftSynthesizer, MidiOutDevice, MidiInDevice, RealTimeSequencer

MidiDevice that can use reference counting for open/close. This interface is intended to be used by MidiSystem.getTransmitter() and MidiSystem.getReceiver().
Method from com.sun.media.sound.ReferenceCountingDevice Summary:
getReceiverReferenceCounting,   getTransmitterReferenceCounting
Method from com.sun.media.sound.ReferenceCountingDevice Detail:
 public Receiver getReceiverReferenceCounting() throws MidiUnavailableException
    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().
 public Transmitter getTransmitterReferenceCounting() throws MidiUnavailableException
    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().