org.tritonus.midi.device.alsa
Class AlsaMidiDevice
java.lang.Object
org.tritonus.share.midi.TMidiDevice
org.tritonus.midi.device.alsa.AlsaMidiDevice
- All Implemented Interfaces:
- MidiDevice, AlsaMidiIn.AlsaMidiInListener
- Direct Known Subclasses:
- AlsaSynthesizer
public class AlsaMidiDevice
- extends TMidiDevice
- implements AlsaMidiIn.AlsaMidiInListener
A representation of a physical MIDI port based on the ALSA sequencer.
Constructor Summary |
AlsaMidiDevice(int nClient,
int nPort,
boolean bUseIn,
boolean bUseOut)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlsaMidiDevice
public AlsaMidiDevice(int nClient,
int nPort,
boolean bUseIn,
boolean bUseOut)
getMicroSecondPosition
public long getMicroSecondPosition()
dequeueEvent
public void dequeueEvent(MidiMessage message,
long lTimestamp)
- Specified by:
dequeueEvent
in interface AlsaMidiIn.AlsaMidiInListener
getReceiver
public Receiver getReceiver()
throws MidiUnavailableException
- Description copied from class:
TMidiDevice
- Creates a new Receiver object associated with this instance.
In this implementation, an unlimited number of Receivers
per MidiDevice can be created.
- Specified by:
getReceiver
in interface MidiDevice
- Overrides:
getReceiver
in class TMidiDevice
- Throws:
MidiUnavailableException
getTransmitter
public Transmitter getTransmitter()
throws MidiUnavailableException
- Description copied from class:
TMidiDevice
- Creates a new Transmitter object associated with this instance.
In this implementation, an unlimited number of Transmitters
per MidiDevice can be created.
- Specified by:
getTransmitter
in interface MidiDevice
- Overrides:
getTransmitter
in class TMidiDevice
- Throws:
MidiUnavailableException