|
|||||||||
| 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 MidiDeviceTMidiDevice(javax.sound.midi.MidiDevice.Info, boolean, boolean)
public void open()
throws MidiUnavailableException
open in interface MidiDeviceMidiUnavailableExceptionpublic void close()
close in interface MidiDevicepublic boolean isOpen()
isOpen in interface MidiDevicepublic long getMicrosecondPosition()
getMicrosecondPosition in interface MidiDevicepublic int getMaxReceivers()
getMaxReceivers in interface MidiDevicepublic int getMaxTransmitters()
getMaxTransmitters in interface MidiDevice
public Receiver getReceiver()
throws MidiUnavailableException
getReceiver in interface MidiDeviceMidiUnavailableException
public Transmitter getTransmitter()
throws MidiUnavailableException
getTransmitter in interface MidiDeviceMidiUnavailableExceptionpublic java.util.List<Receiver> getReceivers()
getReceivers in interface MidiDevicepublic 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 | ||||||||