|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.tritonus.midi.device.alsa.AlsaMidiIn
public class AlsaMidiIn
Handles input from an ALSA port.
Nested Class Summary | |
---|---|
static interface |
AlsaMidiIn.AlsaMidiInListener
|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
void |
run()
The working part of the class. |
Methods inherited from class java.lang.Thread |
---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |