|
|||||||||||
| 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
org.tritonus.midi.device.alsa.AlsaMidiDevice
A representation of a physical MIDI port based on the ALSA sequencer.
| Nested Class Summary |
|---|
| Nested classes inherited from class org.tritonus.share.midi.TMidiDevice |
|---|
TMidiDevice.Info, TMidiDevice.TReceiver, TMidiDevice.TTransmitter |
| Constructor Summary | |
|---|---|
|
AlsaMidiDevice(int nClient,
int nPort,
boolean bUseIn,
boolean bUseOut)
|
protected |
AlsaMidiDevice(MidiDevice.Info info,
int nClient,
int nPort,
boolean bUseIn,
boolean bUseOut)
|
| Method Summary | |
|---|---|
protected void |
closeImpl()
Subclasses have to override this method to be notified of closeing. |
void |
dequeueEvent(MidiMessage message,
long lTimestamp)
|
long |
getMicroSecondPosition()
|
Receiver |
getReceiver()
Creates a new Receiver object associated with this instance. |
Transmitter |
getTransmitter()
Creates a new Transmitter object associated with this instance. |
protected void |
openImpl()
Subclasses have to override this method to be notified of opening. |
protected void |
receive(MidiMessage message,
long lTimeStamp)
Pass MidiMessage from Receivers to physical MIDI port. |
| Methods inherited from class org.tritonus.share.midi.TMidiDevice |
|---|
close, getDeviceInfo, getMaxReceivers, getMaxTransmitters, getMicrosecondPosition, getReceivers, getTransmitters, getUseIn, getUseOut, isOpen, open, sendImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlsaMidiDevice(int nClient,
int nPort,
boolean bUseIn,
boolean bUseOut)
protected AlsaMidiDevice(MidiDevice.Info info,
int nClient,
int nPort,
boolean bUseIn,
boolean bUseOut)
| Method Detail |
|---|
protected void openImpl()
TMidiDevice
openImpl in class TMidiDeviceprotected void closeImpl()
TMidiDevice
closeImpl in class TMidiDevicepublic long getMicroSecondPosition()
protected void receive(MidiMessage message,
long lTimeStamp)
receive in class TMidiDevice
public void dequeueEvent(MidiMessage message,
long lTimestamp)
dequeueEvent in interface AlsaMidiIn.AlsaMidiInListener
public Receiver getReceiver()
throws MidiUnavailableException
TMidiDevice
getReceiver in interface MidiDevicegetReceiver in class TMidiDeviceMidiUnavailableException
public Transmitter getTransmitter()
throws MidiUnavailableException
TMidiDevice
getTransmitter in interface MidiDevicegetTransmitter in class TMidiDeviceMidiUnavailableException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||