|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tritonus.share.midi.TMidiDevice
public abstract class 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 bUseTransmitter,
boolean bUseReceiver)
Initialize this class. |
Method Summary | |
---|---|
void |
close()
|
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. |
java.util.List<Receiver> |
getReceivers()
|
Transmitter |
getTransmitter()
Creates a new Transmitter object associated with this instance. |
java.util.List<Transmitter> |
getTransmitters()
|
boolean |
isOpen()
|
void |
open()
|
Methods inherited from class java.lang.Object |
---|
equals, 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 bUseTransmitter, boolean bUseReceiver)
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
public void close()
close
in interface MidiDevice
public boolean isOpen()
isOpen
in interface MidiDevice
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 java.util.List<Receiver> getReceivers()
getReceivers
in interface MidiDevice
public java.util.List<Transmitter> getTransmitters()
getTransmitters
in interface MidiDevice
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |