|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tritonus.share.midi.TMidiDevice
Base class for MidiDevice implementations. The goal of this class is to supply the common functionality for classes that implement the interface MidiDevice.
Nested Class Summary | |
---|---|
static class |
TMidiDevice.Info
|
class |
TMidiDevice.TReceiver
Receiver proxy class. |
class |
TMidiDevice.TTransmitter
|
Constructor Summary | |
---|---|
TMidiDevice(MidiDevice.Info info)
Initialize this class. |
|
TMidiDevice(MidiDevice.Info info,
boolean bUseIn,
boolean bUseOut)
Initialize this class. |
Method Summary | |
---|---|
void |
close()
|
protected void |
closeImpl()
Subclasses have to override this method to be notified of closeing. |
MidiDevice.Info |
getDeviceInfo()
Retrieves a description of this instance. |
int |
getMaxReceivers()
|
int |
getMaxTransmitters()
|
long |
getMicrosecondPosition()
Returns the device time in microseconds. |
Receiver |
getReceiver()
Creates a new Receiver object associated with this instance. |
List<Receiver> |
getReceivers()
|
Transmitter |
getTransmitter()
Creates a new Transmitter object associated with this instance. |
List<Transmitter> |
getTransmitters()
|
protected boolean |
getUseIn()
Returns whether to handle input. |
protected boolean |
getUseOut()
Returns whether to handle output. |
boolean |
isOpen()
|
void |
open()
|
protected void |
openImpl()
Subclasses have to override this method to be notified of opening. |
protected void |
receive(MidiMessage message,
long lTimeStamp)
|
protected void |
sendImpl(MidiMessage message,
long lTimeStamp)
Send a MidiMessage to all Transmitters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TMidiDevice(MidiDevice.Info info)
info
- The info object that describes this instance.public TMidiDevice(MidiDevice.Info info, boolean bUseIn, boolean bUseOut)
info
- The info object that describes this instance.Method Detail |
---|
public MidiDevice.Info getDeviceInfo()
getDeviceInfo
in interface MidiDevice
TMidiDevice(javax.sound.midi.MidiDevice.Info, boolean, boolean)
public void open() throws MidiUnavailableException
open
in interface MidiDevice
MidiUnavailableException
protected void openImpl() throws MidiUnavailableException
MidiUnavailableException
public void close()
close
in interface MidiDevice
protected void closeImpl()
public boolean isOpen()
isOpen
in interface MidiDevice
protected boolean getUseIn()
getUseOut()
protected boolean getUseOut()
getUseIn()
public long getMicrosecondPosition()
getMicrosecondPosition
in interface MidiDevice
public int getMaxReceivers()
getMaxReceivers
in interface MidiDevice
public int getMaxTransmitters()
getMaxTransmitters
in interface MidiDevice
public Receiver getReceiver() throws MidiUnavailableException
getReceiver
in interface MidiDevice
MidiUnavailableException
public Transmitter getTransmitter() throws MidiUnavailableException
getTransmitter
in interface MidiDevice
MidiUnavailableException
public List<Receiver> getReceivers()
getReceivers
in interface MidiDevice
public List<Transmitter> getTransmitters()
getTransmitters
in interface MidiDevice
protected void receive(MidiMessage message, long lTimeStamp)
protected void sendImpl(MidiMessage message, long lTimeStamp)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |