org.tritonus.lowlevel.alsa
Class AlsaSeqEvent
java.lang.Object
org.tritonus.lowlevel.alsa.AlsaSeqEvent
- public class AlsaSeqEvent
- extends Object
Event for the sequencer.
This class encapsulates an instance of
snd_seq_event_t.
Field Summary |
(package private) long |
m_lNativeHandle
Holds the pointer to snd_seq_event_t
for the native code. |
Method Summary |
void |
finalize()
|
void |
free()
Frees memory for a snd_seq_event_t. |
void |
getControl(int[] anValues)
|
int |
getDestClient()
|
int |
getDestPort()
|
int |
getFlags()
|
int |
getLength()
|
void |
getNote(int[] anValues)
|
int |
getQueue()
|
void |
getQueueControl(int[] anValues,
long[] alValues)
|
int |
getSourceClient()
|
int |
getSourcePort()
|
int |
getTag()
|
long |
getTimestamp()
|
int |
getType()
|
byte[] |
getVar()
|
void |
setCommon(int nType,
int nFlags,
int nTag,
int nQueue,
long lTimestamp,
int nSourceClient,
int nSourcePort,
int nDestClient,
int nDestPort)
|
void |
setControl(int nChannel,
int nParam,
int nValue)
|
void |
setNote(int nChannel,
int nKey,
int nVelocity,
int nOffVelocity,
int nDuration)
|
void |
setQueueControl(int nControlQueue,
int nControlValue,
long lControlTime)
|
void |
setTimestamp(long lTimestamp)
|
void |
setVar(byte[] abData,
int nOffset,
int nLength)
|
m_lNativeHandle
long m_lNativeHandle
- Holds the pointer to snd_seq_event_t
for the native code.
This must be long to be 64bit-clean.
AlsaSeqEvent
public AlsaSeqEvent()
finalize
public void finalize()
- Overrides:
finalize
in class Object
free
public void free()
- Frees memory for a snd_seq_event_t.
getLength
public int getLength()
getType
public int getType()
getFlags
public int getFlags()
getTag
public int getTag()
getQueue
public int getQueue()
getTimestamp
public long getTimestamp()
getSourceClient
public int getSourceClient()
getSourcePort
public int getSourcePort()
getDestClient
public int getDestClient()
getDestPort
public int getDestPort()
getNote
public void getNote(int[] anValues)
getControl
public void getControl(int[] anValues)
getQueueControl
public void getQueueControl(int[] anValues,
long[] alValues)
getVar
public byte[] getVar()
setCommon
public void setCommon(int nType,
int nFlags,
int nTag,
int nQueue,
long lTimestamp,
int nSourceClient,
int nSourcePort,
int nDestClient,
int nDestPort)
setTimestamp
public void setTimestamp(long lTimestamp)
setNote
public void setNote(int nChannel,
int nKey,
int nVelocity,
int nOffVelocity,
int nDuration)
setControl
public void setControl(int nChannel,
int nParam,
int nValue)
setQueueControl
public void setQueueControl(int nControlQueue,
int nControlValue,
long lControlTime)
setVar
public void setVar(byte[] abData,
int nOffset,
int nLength)