public class AlsaMidiIn
extends java.lang.Thread
Modifier and Type | Class and Description |
---|---|
static interface |
AlsaMidiIn.AlsaMidiInListener |
Constructor and Description |
---|
AlsaMidiIn(AlsaSeq alsaSeq,
int nDestPort,
int nSourceClient,
int nSourcePort,
AlsaMidiIn.AlsaMidiInListener listener)
Receives events without timestamping them.
|
AlsaMidiIn(AlsaSeq alsaSeq,
int nDestPort,
int nSourceClient,
int nSourcePort,
int nTimestampingQueue,
boolean bRealtime,
AlsaMidiIn.AlsaMidiInListener listener)
Does establish a subscription where events are routed through
a queue to get a timestamp.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
The working part of the class.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public AlsaMidiIn(AlsaSeq alsaSeq, int nDestPort, int nSourceClient, int nSourcePort, AlsaMidiIn.AlsaMidiInListener listener)
alsaSeq
- The client that should be used to receive
events.nDestPort
- The port number that should be used to receive
events. This port has to exist on the client represented by
alsaSeq.nSourceClient
- The client number that should be listened
to. This and nSourcePort must exist prior to calling this
constructor. The port has to allow read subscriptions.nSourcePort
- The port number that should be listened
to. This and nSourceClient must exist prior to calling this
constructor. The port has to allow read subscriptions.listener
- The listener that should receive the
MidiMessage objects created here from received events.public AlsaMidiIn(AlsaSeq alsaSeq, int nDestPort, int nSourceClient, int nSourcePort, int nTimestampingQueue, boolean bRealtime, AlsaMidiIn.AlsaMidiInListener listener)