< prev index next >
src/java.desktop/share/classes/com/sun/media/sound/ReferenceCountingDevice.java
Print this page
*** 27,38 ****
import javax.sound.midi.MidiUnavailableException;
import javax.sound.midi.Receiver;
import javax.sound.midi.Transmitter;
-
-
/** 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
--- 27,36 ----
*** 40,52 ****
public interface ReferenceCountingDevice {
/** 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 Receiver getReceiverReferenceCounting() 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().
*/
! public Transmitter getTransmitterReferenceCounting() throws MidiUnavailableException;
}
--- 38,50 ----
public interface ReferenceCountingDevice {
/** 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().
*/
! Receiver getReceiverReferenceCounting() 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().
*/
! Transmitter getTransmitterReferenceCounting() throws MidiUnavailableException;
}
< prev index next >