APIdia Launch Partner
Top Description Methods
com.sun.media.sound

public Interface ReferenceCountingDevice

Known Direct Implementers
com.sun.media.sound.SoftSynthesizer, com.sun.media.sound.AbstractMidiDevice
Imports
javax.sound.midi.MidiUnavailableException, .Receiver, .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

Method Summary

Modifier and TypeMethod and Description
public Receiver
getReceiverReferenceCounting()

Retrieve a Receiver that opens the device implicitly.

public Transmitter
getTransmitterReferenceCounting()

Retrieve a Transmitter that opens the device implicitly.

Method Detail

getReceiverReferenceCountingback to summary
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().

getTransmitterReferenceCountingback to summary
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().