org.tritonus.lowlevel.alsa
Class AlsaSeq

java.lang.Object
  extended byorg.tritonus.lowlevel.alsa.AlsaSeq

public class AlsaSeq
extends Object


Field Summary
static int SND_SEQ_ADDRESS_BROADCAST
           
static int SND_SEQ_ADDRESS_SUBSCRIBERS
           
static int SND_SEQ_ADDRESS_UNKNOWN
           
static int SND_SEQ_CLIENT_DUMMY
           
static int SND_SEQ_CLIENT_OSS
           
static int SND_SEQ_CLIENT_SYSTEM
           
static int SND_SEQ_EVENT_BOUNCE
           
static int SND_SEQ_EVENT_CHANPRESS
           
static int SND_SEQ_EVENT_CLIENT_CHANGE
           
static int SND_SEQ_EVENT_CLIENT_EXIT
           
static int SND_SEQ_EVENT_CLIENT_START
           
static int SND_SEQ_EVENT_CLOCK
           
static int SND_SEQ_EVENT_CONTINUE
           
static int SND_SEQ_EVENT_CONTROL14
           
static int SND_SEQ_EVENT_CONTROLLER
           
static int SND_SEQ_EVENT_ECHO
           
static int SND_SEQ_EVENT_INSTR_BEGIN
           
static int SND_SEQ_EVENT_INSTR_CHANGE
           
static int SND_SEQ_EVENT_INSTR_CLUSTER
           
static int SND_SEQ_EVENT_INSTR_CLUSTER_GET
           
static int SND_SEQ_EVENT_INSTR_CLUSTER_RESULT
           
static int SND_SEQ_EVENT_INSTR_END
           
static int SND_SEQ_EVENT_INSTR_FINFO
           
static int SND_SEQ_EVENT_INSTR_FINFO_RESULT
           
static int SND_SEQ_EVENT_INSTR_FREE
           
static int SND_SEQ_EVENT_INSTR_GET
           
static int SND_SEQ_EVENT_INSTR_GET_RESULT
           
static int SND_SEQ_EVENT_INSTR_INFO
           
static int SND_SEQ_EVENT_INSTR_INFO_RESULT
           
static int SND_SEQ_EVENT_INSTR_LIST
           
static int SND_SEQ_EVENT_INSTR_LIST_RESULT
           
static int SND_SEQ_EVENT_INSTR_PUT
           
static int SND_SEQ_EVENT_INSTR_RESET
           
static int SND_SEQ_EVENT_INSTR_STATUS
           
static int SND_SEQ_EVENT_INSTR_STATUS_RESULT
           
static int SND_SEQ_EVENT_KEYPRESS
           
static int SND_SEQ_EVENT_KEYSIGN
           
static int SND_SEQ_EVENT_LENGTH_FIXED
           
static int SND_SEQ_EVENT_LENGTH_MASK
           
static int SND_SEQ_EVENT_LENGTH_VARIABLE
           
static int SND_SEQ_EVENT_LENGTH_VARIPC
           
static int SND_SEQ_EVENT_LENGTH_VARUSR
           
static int SND_SEQ_EVENT_NONE
           
static int SND_SEQ_EVENT_NONREGPARAM
           
static int SND_SEQ_EVENT_NOTE
           
static int SND_SEQ_EVENT_NOTEOFF
           
static int SND_SEQ_EVENT_NOTEON
           
static int SND_SEQ_EVENT_OSS
           
static int SND_SEQ_EVENT_PGMCHANGE
           
static int SND_SEQ_EVENT_PITCHBEND
           
static int SND_SEQ_EVENT_PORT_CHANGE
           
static int SND_SEQ_EVENT_PORT_EXIT
           
static int SND_SEQ_EVENT_PORT_START
           
static int SND_SEQ_EVENT_PORT_SUBSCRIBED
           
static int SND_SEQ_EVENT_PORT_UNSUBSCRIBED
           
static int SND_SEQ_EVENT_QFRAME
           
static int SND_SEQ_EVENT_REGPARAM
           
static int SND_SEQ_EVENT_RESET
           
static int SND_SEQ_EVENT_RESULT
           
static int SND_SEQ_EVENT_SAMPLE
           
static int SND_SEQ_EVENT_SAMPLE_CLUSTER
           
static int SND_SEQ_EVENT_SAMPLE_FREQ
           
static int SND_SEQ_EVENT_SAMPLE_LOOP
           
static int SND_SEQ_EVENT_SAMPLE_POSITION
           
static int SND_SEQ_EVENT_SAMPLE_PRIVATE1
           
static int SND_SEQ_EVENT_SAMPLE_START
           
static int SND_SEQ_EVENT_SAMPLE_STOP
           
static int SND_SEQ_EVENT_SAMPLE_VOLUME
           
static int SND_SEQ_EVENT_SENSING
           
static int SND_SEQ_EVENT_SETPOS_TICK
           
static int SND_SEQ_EVENT_SETPOS_TIME
           
static int SND_SEQ_EVENT_SONGPOS
           
static int SND_SEQ_EVENT_SONGSEL
           
static int SND_SEQ_EVENT_START
           
static int SND_SEQ_EVENT_STOP
           
static int SND_SEQ_EVENT_SYNC
           
static int SND_SEQ_EVENT_SYNC_POS
           
static int SND_SEQ_EVENT_SYSEX
           
static int SND_SEQ_EVENT_SYSTEM
           
static int SND_SEQ_EVENT_TEMPO
           
static int SND_SEQ_EVENT_TICK
           
static int SND_SEQ_EVENT_TIMESIGN
           
static int SND_SEQ_EVENT_TUNE_REQUEST
           
static int SND_SEQ_EVENT_USR_VAR0
           
static int SND_SEQ_EVENT_USR_VAR1
           
static int SND_SEQ_EVENT_USR_VAR2
           
static int SND_SEQ_EVENT_USR_VAR3
           
static int SND_SEQ_EVENT_USR_VAR4
           
static int SND_SEQ_EVENT_USR0
           
static int SND_SEQ_EVENT_USR1
           
static int SND_SEQ_EVENT_USR2
           
static int SND_SEQ_EVENT_USR3
           
static int SND_SEQ_EVENT_USR4
           
static int SND_SEQ_EVENT_USR5
           
static int SND_SEQ_EVENT_USR6
           
static int SND_SEQ_EVENT_USR7
           
static int SND_SEQ_EVENT_USR8
           
static int SND_SEQ_EVENT_USR9
           
static int SND_SEQ_FILTER_BOUNCE
           
static int SND_SEQ_FILTER_BROADCAST
           
static int SND_SEQ_FILTER_MULTICAST
           
static long SND_SEQ_FILTER_USE_EVENT
           
static String SND_SEQ_GROUP_APPLICATION
           
static String SND_SEQ_GROUP_DEVICE
           
static String SND_SEQ_GROUP_SYSTEM
           
static int SND_SEQ_INSTR_ATYPE_ALIAS
           
static int SND_SEQ_INSTR_ATYPE_DATA
           
static int SND_SEQ_INSTR_FREE_CMD_ALL
           
static int SND_SEQ_INSTR_FREE_CMD_CLUSTER
           
static int SND_SEQ_INSTR_FREE_CMD_PRIVATE
           
static int SND_SEQ_INSTR_FREE_CMD_SINGLE
           
static int SND_SEQ_INSTR_GET_CMD_FULL
           
static int SND_SEQ_INSTR_GET_CMD_PARTIAL
           
static String SND_SEQ_INSTR_ID_DLS1
           
static String SND_SEQ_INSTR_ID_DLS2
           
static String SND_SEQ_INSTR_ID_GUS_PATCH
           
static String SND_SEQ_INSTR_ID_INTERWAVE
           
static String SND_SEQ_INSTR_ID_OPL2_3
           
static String SND_SEQ_INSTR_ID_OPL4
           
static String SND_SEQ_INSTR_ID_SIMPLE
           
static String SND_SEQ_INSTR_ID_SOUNDFONT
           
static int SND_SEQ_INSTR_PUT_CMD_ADD
           
static int SND_SEQ_INSTR_PUT_CMD_CREATE
           
static int SND_SEQ_INSTR_PUT_CMD_MODIFY
           
static int SND_SEQ_INSTR_PUT_CMD_REMOVE
           
static int SND_SEQ_INSTR_PUT_CMD_REPLACE
           
static int SND_SEQ_INSTR_QUERY_FOLLOW_ALIAS
           
static int SND_SEQ_INSTR_TYPE0_DLS1
           
static int SND_SEQ_INSTR_TYPE0_DLS2
           
static int SND_SEQ_INSTR_TYPE1_GUS_PATCH
           
static int SND_SEQ_INSTR_TYPE1_INTERWAVE
           
static int SND_SEQ_INSTR_TYPE1_SIMPLE
           
static int SND_SEQ_INSTR_TYPE1_SOUNDFONT
           
static int SND_SEQ_INSTR_TYPE2_OPL2_3
           
static int SND_SEQ_INSTR_TYPE2_OPL4
           
static int SND_SEQ_PORT_CAP_DUPLEX
           
static int SND_SEQ_PORT_CAP_NO_EXPORT
           
static int SND_SEQ_PORT_CAP_READ
           
static int SND_SEQ_PORT_CAP_SUBS_READ
           
static int SND_SEQ_PORT_CAP_SUBS_WRITE
           
static int SND_SEQ_PORT_CAP_SYNC_READ
           
static int SND_SEQ_PORT_CAP_SYNC_WRITE
           
static int SND_SEQ_PORT_CAP_WRITE
           
static int SND_SEQ_PORT_FLG_GIVEN_PORT
           
static int SND_SEQ_PORT_SYSTEM_ANNOUNCE
           
static int SND_SEQ_PORT_SYSTEM_TIMER
           
static int SND_SEQ_PORT_TYPE_APPLICATION
           
static int SND_SEQ_PORT_TYPE_DIRECT_SAMPLE
           
static int SND_SEQ_PORT_TYPE_MIDI_GENERIC
           
static int SND_SEQ_PORT_TYPE_MIDI_GM
           
static int SND_SEQ_PORT_TYPE_MIDI_GS
           
static int SND_SEQ_PORT_TYPE_MIDI_MT32
           
static int SND_SEQ_PORT_TYPE_MIDI_XG
           
static int SND_SEQ_PORT_TYPE_SAMPLE
           
static int SND_SEQ_PORT_TYPE_SPECIFIC
           
static int SND_SEQ_PORT_TYPE_SYNTH
           
static int SND_SEQ_PRIORITY_HIGH
           
static int SND_SEQ_PRIORITY_MASK
           
static int SND_SEQ_PRIORITY_NORMAL
           
static int SND_SEQ_QUERY_SUBS_READ
           
static int SND_SEQ_QUERY_SUBS_WRITE
           
static int SND_SEQ_QUEUE_DIRECT
           
static int SND_SEQ_QUEUE_FLG_SYNC
           
static int SND_SEQ_QUEUE_FLG_SYNC_LOST
           
static int SND_SEQ_REMOVE_DEST
           
static int SND_SEQ_REMOVE_DEST_CHANNEL
           
static int SND_SEQ_REMOVE_EVENT_TYPE
           
static int SND_SEQ_REMOVE_IGNORE_OFF
           
static int SND_SEQ_REMOVE_INPUT
           
static int SND_SEQ_REMOVE_OUTPUT
           
static int SND_SEQ_REMOVE_TAG_MATCH
           
static int SND_SEQ_REMOVE_TIME_AFTER
           
static int SND_SEQ_REMOVE_TIME_BEFORE
           
static int SND_SEQ_REMOVE_TIME_TICK
           
static int SND_SEQ_SYNC_FMT_DTL
           
static int SND_SEQ_SYNC_FMT_MIDI_CLOCK
           
static int SND_SEQ_SYNC_FMT_MIDI_TICK
           
static int SND_SEQ_SYNC_FMT_MTC
           
static int SND_SEQ_SYNC_FMT_PRIVATE_CLOCK
           
static int SND_SEQ_SYNC_FMT_PRIVATE_TIME
           
static int SND_SEQ_SYNC_FMT_SMPTE
           
static int SND_SEQ_SYNC_FPS_24
           
static int SND_SEQ_SYNC_FPS_25
           
static int SND_SEQ_SYNC_FPS_30_DP
           
static int SND_SEQ_SYNC_FPS_30_NDP
           
static int SND_SEQ_SYNC_MODE
           
static int SND_SEQ_SYNC_TICK
           
static int SND_SEQ_SYNC_TIME
           
static int SND_SEQ_TIME_MODE_ABS
           
static int SND_SEQ_TIME_MODE_MASK
           
static int SND_SEQ_TIME_MODE_REL
           
static int SND_SEQ_TIME_STAMP_MASK
           
static int SND_SEQ_TIME_STAMP_REAL
           
static int SND_SEQ_TIME_STAMP_TICK
           
static int SND_SEQ_TIMER_ALSA
           
static int SND_SEQ_TIMER_MIDI_CLOCK
           
static int SND_SEQ_TIMER_MIDI_TICK
           
 
Constructor Summary
AlsaSeq()
           
AlsaSeq(String strClientName)
           
 
Method Summary
 int allocQueue()
          Allocates (reserves) a sequencing queue.
 void close()
          Closes the sequencer.
 int createPort(String strName, int nCapabilities, int nGroupPermissions, int nType, int nMidiChannels, int nMidiVoices, int nSynthVoices)
           
 int drainOutput()
           
 int dropInput()
           
 int dropInputBuffer()
           
 int dropOutput()
           
 int dropOutputBuffer()
           
 int eventInput(AlsaSeqEvent event)
           
 int eventInputPending(int nFetchSequencer)
           
 int eventOutput(AlsaSeqEvent event)
           
 int eventOutputBuffer(AlsaSeqEvent event)
           
 int eventOutputDirect(AlsaSeqEvent event)
           
 int eventOutputPending()
           
 int extractOutput(AlsaSeqEvent event)
           
 int freeQueue(int nQueue)
          Frees a sequencing queue.
 int getClientId()
           
 int getClientInfo(AlsaSeqClientInfo clientInfo)
           
 int getClientInfo(int nClient, AlsaSeqClientInfo clientInfo)
           
 Iterator getClientInfos()
           
 int getInputBufferSize()
           
 String getName()
           
 int getNextClient(int nClient, int[] anValues)
          Gets information about the next client.
 int getNextPort(int nClient, int nPort, int[] anValues)
          Gets the next port.
 int getOutputBufferSize()
           
 int getPortInfo(int nPort, AlsaSeqPortInfo portInfo)
           
 int getPortInfo(int nClient, int nPort, AlsaSeqPortInfo portInfo)
           
 Iterator getPortInfos(int nClient)
           
 int getPortSubscription(AlsaSeqPortSubscribe portSubscribe)
           
 int getQueueInfo(int nQueue, AlsaSeqQueueInfo queueInfo)
          Get the queue information.
 int getQueueStatus(int nQueue, AlsaSeqQueueStatus queueStatus)
          Get the queue status.
 int getQueueTempo(int nQueue, AlsaSeqQueueTempo queueTempo)
          Get the queue tempo.
 int getQueueTimer(int nQueue, AlsaSeqQueueTimer queueTimer)
          Get the queue timer.
 boolean getQueueUsage(int nQueue)
          Get the queue usage flag.
 int getSystemInfo(AlsaSeqSystemInfo systemInfo)
           
 int getType()
           
 int setClientInfo(AlsaSeqClientInfo clientInfo)
           
 void setClientName(String strName)
           
 int setInputBufferSize(int nSize)
           
 int setNonblock(boolean bNonblock)
           
 int setOutputBufferSize(int nSize)
           
 int setQueueInfo(int nQueue, AlsaSeqQueueInfo queueInfo)
          Set the queue information.
 int setQueueTempo(int nQueue, AlsaSeqQueueTempo queueTempo)
          Set the queue tempo.
 int setQueueTimer(int nQueue, AlsaSeqQueueTimer queueTimer)
          Set the queue timer.
 int setQueueUsage(int nQueue, boolean bUsageAllowed)
          Set the queue usage flag.
 int subscribePort(AlsaSeqPortSubscribe portSubscribe)
           
 int unsubscribePort(AlsaSeqPortSubscribe portSubscribe)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SND_SEQ_EVENT_SYSTEM

public static final int SND_SEQ_EVENT_SYSTEM
See Also:
Constant Field Values

SND_SEQ_EVENT_RESULT

public static final int SND_SEQ_EVENT_RESULT
See Also:
Constant Field Values

SND_SEQ_EVENT_NOTE

public static final int SND_SEQ_EVENT_NOTE
See Also:
Constant Field Values

SND_SEQ_EVENT_NOTEON

public static final int SND_SEQ_EVENT_NOTEON
See Also:
Constant Field Values

SND_SEQ_EVENT_NOTEOFF

public static final int SND_SEQ_EVENT_NOTEOFF
See Also:
Constant Field Values

SND_SEQ_EVENT_KEYPRESS

public static final int SND_SEQ_EVENT_KEYPRESS
See Also:
Constant Field Values

SND_SEQ_EVENT_CONTROLLER

public static final int SND_SEQ_EVENT_CONTROLLER
See Also:
Constant Field Values

SND_SEQ_EVENT_PGMCHANGE

public static final int SND_SEQ_EVENT_PGMCHANGE
See Also:
Constant Field Values

SND_SEQ_EVENT_CHANPRESS

public static final int SND_SEQ_EVENT_CHANPRESS
See Also:
Constant Field Values

SND_SEQ_EVENT_PITCHBEND

public static final int SND_SEQ_EVENT_PITCHBEND
See Also:
Constant Field Values

SND_SEQ_EVENT_CONTROL14

public static final int SND_SEQ_EVENT_CONTROL14
See Also:
Constant Field Values

SND_SEQ_EVENT_NONREGPARAM

public static final int SND_SEQ_EVENT_NONREGPARAM
See Also:
Constant Field Values

SND_SEQ_EVENT_REGPARAM

public static final int SND_SEQ_EVENT_REGPARAM
See Also:
Constant Field Values

SND_SEQ_EVENT_SONGPOS

public static final int SND_SEQ_EVENT_SONGPOS
See Also:
Constant Field Values

SND_SEQ_EVENT_SONGSEL

public static final int SND_SEQ_EVENT_SONGSEL
See Also:
Constant Field Values

SND_SEQ_EVENT_QFRAME

public static final int SND_SEQ_EVENT_QFRAME
See Also:
Constant Field Values

SND_SEQ_EVENT_TIMESIGN

public static final int SND_SEQ_EVENT_TIMESIGN
See Also:
Constant Field Values

SND_SEQ_EVENT_KEYSIGN

public static final int SND_SEQ_EVENT_KEYSIGN
See Also:
Constant Field Values

SND_SEQ_EVENT_START

public static final int SND_SEQ_EVENT_START
See Also:
Constant Field Values

SND_SEQ_EVENT_CONTINUE

public static final int SND_SEQ_EVENT_CONTINUE
See Also:
Constant Field Values

SND_SEQ_EVENT_STOP

public static final int SND_SEQ_EVENT_STOP
See Also:
Constant Field Values

SND_SEQ_EVENT_SETPOS_TICK

public static final int SND_SEQ_EVENT_SETPOS_TICK
See Also:
Constant Field Values

SND_SEQ_EVENT_SETPOS_TIME

public static final int SND_SEQ_EVENT_SETPOS_TIME
See Also:
Constant Field Values

SND_SEQ_EVENT_TEMPO

public static final int SND_SEQ_EVENT_TEMPO
See Also:
Constant Field Values

SND_SEQ_EVENT_CLOCK

public static final int SND_SEQ_EVENT_CLOCK
See Also:
Constant Field Values

SND_SEQ_EVENT_TICK

public static final int SND_SEQ_EVENT_TICK
See Also:
Constant Field Values

SND_SEQ_EVENT_SYNC

public static final int SND_SEQ_EVENT_SYNC
See Also:
Constant Field Values

SND_SEQ_EVENT_SYNC_POS

public static final int SND_SEQ_EVENT_SYNC_POS
See Also:
Constant Field Values

SND_SEQ_EVENT_TUNE_REQUEST

public static final int SND_SEQ_EVENT_TUNE_REQUEST
See Also:
Constant Field Values

SND_SEQ_EVENT_RESET

public static final int SND_SEQ_EVENT_RESET
See Also:
Constant Field Values

SND_SEQ_EVENT_SENSING

public static final int SND_SEQ_EVENT_SENSING
See Also:
Constant Field Values

SND_SEQ_EVENT_ECHO

public static final int SND_SEQ_EVENT_ECHO
See Also:
Constant Field Values

SND_SEQ_EVENT_OSS

public static final int SND_SEQ_EVENT_OSS
See Also:
Constant Field Values

SND_SEQ_EVENT_CLIENT_START

public static final int SND_SEQ_EVENT_CLIENT_START
See Also:
Constant Field Values

SND_SEQ_EVENT_CLIENT_EXIT

public static final int SND_SEQ_EVENT_CLIENT_EXIT
See Also:
Constant Field Values

SND_SEQ_EVENT_CLIENT_CHANGE

public static final int SND_SEQ_EVENT_CLIENT_CHANGE
See Also:
Constant Field Values

SND_SEQ_EVENT_PORT_START

public static final int SND_SEQ_EVENT_PORT_START
See Also:
Constant Field Values

SND_SEQ_EVENT_PORT_EXIT

public static final int SND_SEQ_EVENT_PORT_EXIT
See Also:
Constant Field Values

SND_SEQ_EVENT_PORT_CHANGE

public static final int SND_SEQ_EVENT_PORT_CHANGE
See Also:
Constant Field Values

SND_SEQ_EVENT_PORT_SUBSCRIBED

public static final int SND_SEQ_EVENT_PORT_SUBSCRIBED
See Also:
Constant Field Values

SND_SEQ_EVENT_PORT_UNSUBSCRIBED

public static final int SND_SEQ_EVENT_PORT_UNSUBSCRIBED
See Also:
Constant Field Values

SND_SEQ_EVENT_SAMPLE

public static final int SND_SEQ_EVENT_SAMPLE
See Also:
Constant Field Values

SND_SEQ_EVENT_SAMPLE_CLUSTER

public static final int SND_SEQ_EVENT_SAMPLE_CLUSTER
See Also:
Constant Field Values

SND_SEQ_EVENT_SAMPLE_START

public static final int SND_SEQ_EVENT_SAMPLE_START
See Also:
Constant Field Values

SND_SEQ_EVENT_SAMPLE_STOP

public static final int SND_SEQ_EVENT_SAMPLE_STOP
See Also:
Constant Field Values

SND_SEQ_EVENT_SAMPLE_FREQ

public static final int SND_SEQ_EVENT_SAMPLE_FREQ
See Also:
Constant Field Values

SND_SEQ_EVENT_SAMPLE_VOLUME

public static final int SND_SEQ_EVENT_SAMPLE_VOLUME
See Also:
Constant Field Values

SND_SEQ_EVENT_SAMPLE_LOOP

public static final int SND_SEQ_EVENT_SAMPLE_LOOP
See Also:
Constant Field Values

SND_SEQ_EVENT_SAMPLE_POSITION

public static final int SND_SEQ_EVENT_SAMPLE_POSITION
See Also:
Constant Field Values

SND_SEQ_EVENT_SAMPLE_PRIVATE1

public static final int SND_SEQ_EVENT_SAMPLE_PRIVATE1
See Also:
Constant Field Values

SND_SEQ_EVENT_USR0

public static final int SND_SEQ_EVENT_USR0
See Also:
Constant Field Values

SND_SEQ_EVENT_USR1

public static final int SND_SEQ_EVENT_USR1
See Also:
Constant Field Values

SND_SEQ_EVENT_USR2

public static final int SND_SEQ_EVENT_USR2
See Also:
Constant Field Values

SND_SEQ_EVENT_USR3

public static final int SND_SEQ_EVENT_USR3
See Also:
Constant Field Values

SND_SEQ_EVENT_USR4

public static final int SND_SEQ_EVENT_USR4
See Also:
Constant Field Values

SND_SEQ_EVENT_USR5

public static final int SND_SEQ_EVENT_USR5
See Also:
Constant Field Values

SND_SEQ_EVENT_USR6

public static final int SND_SEQ_EVENT_USR6
See Also:
Constant Field Values

SND_SEQ_EVENT_USR7

public static final int SND_SEQ_EVENT_USR7
See Also:
Constant Field Values

SND_SEQ_EVENT_USR8

public static final int SND_SEQ_EVENT_USR8
See Also:
Constant Field Values

SND_SEQ_EVENT_USR9

public static final int SND_SEQ_EVENT_USR9
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_BEGIN

public static final int SND_SEQ_EVENT_INSTR_BEGIN
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_END

public static final int SND_SEQ_EVENT_INSTR_END
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_INFO

public static final int SND_SEQ_EVENT_INSTR_INFO
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_INFO_RESULT

public static final int SND_SEQ_EVENT_INSTR_INFO_RESULT
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_FINFO

public static final int SND_SEQ_EVENT_INSTR_FINFO
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_FINFO_RESULT

public static final int SND_SEQ_EVENT_INSTR_FINFO_RESULT
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_RESET

public static final int SND_SEQ_EVENT_INSTR_RESET
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_STATUS

public static final int SND_SEQ_EVENT_INSTR_STATUS
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_STATUS_RESULT

public static final int SND_SEQ_EVENT_INSTR_STATUS_RESULT
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_PUT

public static final int SND_SEQ_EVENT_INSTR_PUT
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_GET

public static final int SND_SEQ_EVENT_INSTR_GET
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_GET_RESULT

public static final int SND_SEQ_EVENT_INSTR_GET_RESULT
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_FREE

public static final int SND_SEQ_EVENT_INSTR_FREE
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_LIST

public static final int SND_SEQ_EVENT_INSTR_LIST
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_LIST_RESULT

public static final int SND_SEQ_EVENT_INSTR_LIST_RESULT
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_CLUSTER

public static final int SND_SEQ_EVENT_INSTR_CLUSTER
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_CLUSTER_GET

public static final int SND_SEQ_EVENT_INSTR_CLUSTER_GET
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_CLUSTER_RESULT

public static final int SND_SEQ_EVENT_INSTR_CLUSTER_RESULT
See Also:
Constant Field Values

SND_SEQ_EVENT_INSTR_CHANGE

public static final int SND_SEQ_EVENT_INSTR_CHANGE
See Also:
Constant Field Values

SND_SEQ_EVENT_SYSEX

public static final int SND_SEQ_EVENT_SYSEX
See Also:
Constant Field Values

SND_SEQ_EVENT_BOUNCE

public static final int SND_SEQ_EVENT_BOUNCE
See Also:
Constant Field Values

SND_SEQ_EVENT_USR_VAR0

public static final int SND_SEQ_EVENT_USR_VAR0
See Also:
Constant Field Values

SND_SEQ_EVENT_USR_VAR1

public static final int SND_SEQ_EVENT_USR_VAR1
See Also:
Constant Field Values

SND_SEQ_EVENT_USR_VAR2

public static final int SND_SEQ_EVENT_USR_VAR2
See Also:
Constant Field Values

SND_SEQ_EVENT_USR_VAR3

public static final int SND_SEQ_EVENT_USR_VAR3
See Also:
Constant Field Values

SND_SEQ_EVENT_USR_VAR4

public static final int SND_SEQ_EVENT_USR_VAR4
See Also:
Constant Field Values

SND_SEQ_EVENT_NONE

public static final int SND_SEQ_EVENT_NONE
See Also:
Constant Field Values

SND_SEQ_ADDRESS_UNKNOWN

public static final int SND_SEQ_ADDRESS_UNKNOWN
See Also:
Constant Field Values

SND_SEQ_ADDRESS_SUBSCRIBERS

public static final int SND_SEQ_ADDRESS_SUBSCRIBERS
See Also:
Constant Field Values

SND_SEQ_ADDRESS_BROADCAST

public static final int SND_SEQ_ADDRESS_BROADCAST
See Also:
Constant Field Values

SND_SEQ_QUEUE_DIRECT

public static final int SND_SEQ_QUEUE_DIRECT
See Also:
Constant Field Values

SND_SEQ_TIME_STAMP_TICK

public static final int SND_SEQ_TIME_STAMP_TICK
See Also:
Constant Field Values

SND_SEQ_TIME_STAMP_REAL

public static final int SND_SEQ_TIME_STAMP_REAL
See Also:
Constant Field Values

SND_SEQ_TIME_STAMP_MASK

public static final int SND_SEQ_TIME_STAMP_MASK
See Also:
Constant Field Values

SND_SEQ_TIME_MODE_ABS

public static final int SND_SEQ_TIME_MODE_ABS
See Also:
Constant Field Values

SND_SEQ_TIME_MODE_REL

public static final int SND_SEQ_TIME_MODE_REL
See Also:
Constant Field Values

SND_SEQ_TIME_MODE_MASK

public static final int SND_SEQ_TIME_MODE_MASK
See Also:
Constant Field Values

SND_SEQ_EVENT_LENGTH_FIXED

public static final int SND_SEQ_EVENT_LENGTH_FIXED
See Also:
Constant Field Values

SND_SEQ_EVENT_LENGTH_VARIABLE

public static final int SND_SEQ_EVENT_LENGTH_VARIABLE
See Also:
Constant Field Values

SND_SEQ_EVENT_LENGTH_VARUSR

public static final int SND_SEQ_EVENT_LENGTH_VARUSR
See Also:
Constant Field Values

SND_SEQ_EVENT_LENGTH_VARIPC

public static final int SND_SEQ_EVENT_LENGTH_VARIPC
See Also:
Constant Field Values

SND_SEQ_EVENT_LENGTH_MASK

public static final int SND_SEQ_EVENT_LENGTH_MASK
See Also:
Constant Field Values

SND_SEQ_PRIORITY_NORMAL

public static final int SND_SEQ_PRIORITY_NORMAL
See Also:
Constant Field Values

SND_SEQ_PRIORITY_HIGH

public static final int SND_SEQ_PRIORITY_HIGH
See Also:
Constant Field Values

SND_SEQ_PRIORITY_MASK

public static final int SND_SEQ_PRIORITY_MASK
See Also:
Constant Field Values

SND_SEQ_CLIENT_SYSTEM

public static final int SND_SEQ_CLIENT_SYSTEM
See Also:
Constant Field Values

SND_SEQ_CLIENT_DUMMY

public static final int SND_SEQ_CLIENT_DUMMY
See Also:
Constant Field Values

SND_SEQ_CLIENT_OSS

public static final int SND_SEQ_CLIENT_OSS
See Also:
Constant Field Values

SND_SEQ_FILTER_BROADCAST

public static final int SND_SEQ_FILTER_BROADCAST
See Also:
Constant Field Values

SND_SEQ_FILTER_MULTICAST

public static final int SND_SEQ_FILTER_MULTICAST
See Also:
Constant Field Values

SND_SEQ_FILTER_BOUNCE

public static final int SND_SEQ_FILTER_BOUNCE
See Also:
Constant Field Values

SND_SEQ_FILTER_USE_EVENT

public static final long SND_SEQ_FILTER_USE_EVENT
See Also:
Constant Field Values

SND_SEQ_REMOVE_INPUT

public static final int SND_SEQ_REMOVE_INPUT
See Also:
Constant Field Values

SND_SEQ_REMOVE_OUTPUT

public static final int SND_SEQ_REMOVE_OUTPUT
See Also:
Constant Field Values

SND_SEQ_REMOVE_DEST

public static final int SND_SEQ_REMOVE_DEST
See Also:
Constant Field Values

SND_SEQ_REMOVE_DEST_CHANNEL

public static final int SND_SEQ_REMOVE_DEST_CHANNEL
See Also:
Constant Field Values

SND_SEQ_REMOVE_TIME_BEFORE

public static final int SND_SEQ_REMOVE_TIME_BEFORE
See Also:
Constant Field Values

SND_SEQ_REMOVE_TIME_AFTER

public static final int SND_SEQ_REMOVE_TIME_AFTER
See Also:
Constant Field Values

SND_SEQ_REMOVE_TIME_TICK

public static final int SND_SEQ_REMOVE_TIME_TICK
See Also:
Constant Field Values

SND_SEQ_REMOVE_EVENT_TYPE

public static final int SND_SEQ_REMOVE_EVENT_TYPE
See Also:
Constant Field Values

SND_SEQ_REMOVE_IGNORE_OFF

public static final int SND_SEQ_REMOVE_IGNORE_OFF
See Also:
Constant Field Values

SND_SEQ_REMOVE_TAG_MATCH

public static final int SND_SEQ_REMOVE_TAG_MATCH
See Also:
Constant Field Values

SND_SEQ_PORT_SYSTEM_TIMER

public static final int SND_SEQ_PORT_SYSTEM_TIMER
See Also:
Constant Field Values

SND_SEQ_PORT_SYSTEM_ANNOUNCE

public static final int SND_SEQ_PORT_SYSTEM_ANNOUNCE
See Also:
Constant Field Values

SND_SEQ_PORT_CAP_READ

public static final int SND_SEQ_PORT_CAP_READ
See Also:
Constant Field Values

SND_SEQ_PORT_CAP_WRITE

public static final int SND_SEQ_PORT_CAP_WRITE
See Also:
Constant Field Values

SND_SEQ_PORT_CAP_SYNC_READ

public static final int SND_SEQ_PORT_CAP_SYNC_READ
See Also:
Constant Field Values

SND_SEQ_PORT_CAP_SYNC_WRITE

public static final int SND_SEQ_PORT_CAP_SYNC_WRITE
See Also:
Constant Field Values

SND_SEQ_PORT_CAP_DUPLEX

public static final int SND_SEQ_PORT_CAP_DUPLEX
See Also:
Constant Field Values

SND_SEQ_PORT_CAP_SUBS_READ

public static final int SND_SEQ_PORT_CAP_SUBS_READ
See Also:
Constant Field Values

SND_SEQ_PORT_CAP_SUBS_WRITE

public static final int SND_SEQ_PORT_CAP_SUBS_WRITE
See Also:
Constant Field Values

SND_SEQ_PORT_CAP_NO_EXPORT

public static final int SND_SEQ_PORT_CAP_NO_EXPORT
See Also:
Constant Field Values

SND_SEQ_PORT_TYPE_SPECIFIC

public static final int SND_SEQ_PORT_TYPE_SPECIFIC
See Also:
Constant Field Values

SND_SEQ_PORT_TYPE_MIDI_GENERIC

public static final int SND_SEQ_PORT_TYPE_MIDI_GENERIC
See Also:
Constant Field Values

SND_SEQ_PORT_TYPE_MIDI_GM

public static final int SND_SEQ_PORT_TYPE_MIDI_GM
See Also:
Constant Field Values

SND_SEQ_PORT_TYPE_MIDI_GS

public static final int SND_SEQ_PORT_TYPE_MIDI_GS
See Also:
Constant Field Values

SND_SEQ_PORT_TYPE_MIDI_XG

public static final int SND_SEQ_PORT_TYPE_MIDI_XG
See Also:
Constant Field Values

SND_SEQ_PORT_TYPE_MIDI_MT32

public static final int SND_SEQ_PORT_TYPE_MIDI_MT32
See Also:
Constant Field Values

SND_SEQ_PORT_TYPE_SYNTH

public static final int SND_SEQ_PORT_TYPE_SYNTH
See Also:
Constant Field Values

SND_SEQ_PORT_TYPE_DIRECT_SAMPLE

public static final int SND_SEQ_PORT_TYPE_DIRECT_SAMPLE
See Also:
Constant Field Values

SND_SEQ_PORT_TYPE_SAMPLE

public static final int SND_SEQ_PORT_TYPE_SAMPLE
See Also:
Constant Field Values

SND_SEQ_PORT_TYPE_APPLICATION

public static final int SND_SEQ_PORT_TYPE_APPLICATION
See Also:
Constant Field Values

SND_SEQ_GROUP_SYSTEM

public static final String SND_SEQ_GROUP_SYSTEM
See Also:
Constant Field Values

SND_SEQ_GROUP_DEVICE

public static final String SND_SEQ_GROUP_DEVICE
See Also:
Constant Field Values

SND_SEQ_GROUP_APPLICATION

public static final String SND_SEQ_GROUP_APPLICATION
See Also:
Constant Field Values

SND_SEQ_PORT_FLG_GIVEN_PORT

public static final int SND_SEQ_PORT_FLG_GIVEN_PORT
See Also:
Constant Field Values

SND_SEQ_QUEUE_FLG_SYNC

public static final int SND_SEQ_QUEUE_FLG_SYNC
See Also:
Constant Field Values

SND_SEQ_QUEUE_FLG_SYNC_LOST

public static final int SND_SEQ_QUEUE_FLG_SYNC_LOST
See Also:
Constant Field Values

SND_SEQ_SYNC_TICK

public static final int SND_SEQ_SYNC_TICK
See Also:
Constant Field Values

SND_SEQ_SYNC_TIME

public static final int SND_SEQ_SYNC_TIME
See Also:
Constant Field Values

SND_SEQ_SYNC_MODE

public static final int SND_SEQ_SYNC_MODE
See Also:
Constant Field Values

SND_SEQ_SYNC_FMT_PRIVATE_CLOCK

public static final int SND_SEQ_SYNC_FMT_PRIVATE_CLOCK
See Also:
Constant Field Values

SND_SEQ_SYNC_FMT_PRIVATE_TIME

public static final int SND_SEQ_SYNC_FMT_PRIVATE_TIME
See Also:
Constant Field Values

SND_SEQ_SYNC_FMT_MIDI_CLOCK

public static final int SND_SEQ_SYNC_FMT_MIDI_CLOCK
See Also:
Constant Field Values

SND_SEQ_SYNC_FMT_MTC

public static final int SND_SEQ_SYNC_FMT_MTC
See Also:
Constant Field Values

SND_SEQ_SYNC_FMT_DTL

public static final int SND_SEQ_SYNC_FMT_DTL
See Also:
Constant Field Values

SND_SEQ_SYNC_FMT_SMPTE

public static final int SND_SEQ_SYNC_FMT_SMPTE
See Also:
Constant Field Values

SND_SEQ_SYNC_FMT_MIDI_TICK

public static final int SND_SEQ_SYNC_FMT_MIDI_TICK
See Also:
Constant Field Values

SND_SEQ_SYNC_FPS_24

public static final int SND_SEQ_SYNC_FPS_24
See Also:
Constant Field Values

SND_SEQ_SYNC_FPS_25

public static final int SND_SEQ_SYNC_FPS_25
See Also:
Constant Field Values

SND_SEQ_SYNC_FPS_30_DP

public static final int SND_SEQ_SYNC_FPS_30_DP
See Also:
Constant Field Values

SND_SEQ_SYNC_FPS_30_NDP

public static final int SND_SEQ_SYNC_FPS_30_NDP
See Also:
Constant Field Values

SND_SEQ_TIMER_ALSA

public static final int SND_SEQ_TIMER_ALSA
See Also:
Constant Field Values

SND_SEQ_TIMER_MIDI_CLOCK

public static final int SND_SEQ_TIMER_MIDI_CLOCK
See Also:
Constant Field Values

SND_SEQ_TIMER_MIDI_TICK

public static final int SND_SEQ_TIMER_MIDI_TICK
See Also:
Constant Field Values

SND_SEQ_QUERY_SUBS_READ

public static final int SND_SEQ_QUERY_SUBS_READ
See Also:
Constant Field Values

SND_SEQ_QUERY_SUBS_WRITE

public static final int SND_SEQ_QUERY_SUBS_WRITE
See Also:
Constant Field Values

SND_SEQ_INSTR_ATYPE_DATA

public static final int SND_SEQ_INSTR_ATYPE_DATA
See Also:
Constant Field Values

SND_SEQ_INSTR_ATYPE_ALIAS

public static final int SND_SEQ_INSTR_ATYPE_ALIAS
See Also:
Constant Field Values

SND_SEQ_INSTR_ID_DLS1

public static final String SND_SEQ_INSTR_ID_DLS1
See Also:
Constant Field Values

SND_SEQ_INSTR_ID_DLS2

public static final String SND_SEQ_INSTR_ID_DLS2
See Also:
Constant Field Values

SND_SEQ_INSTR_ID_SIMPLE

public static final String SND_SEQ_INSTR_ID_SIMPLE
See Also:
Constant Field Values

SND_SEQ_INSTR_ID_SOUNDFONT

public static final String SND_SEQ_INSTR_ID_SOUNDFONT
See Also:
Constant Field Values

SND_SEQ_INSTR_ID_GUS_PATCH

public static final String SND_SEQ_INSTR_ID_GUS_PATCH
See Also:
Constant Field Values

SND_SEQ_INSTR_ID_INTERWAVE

public static final String SND_SEQ_INSTR_ID_INTERWAVE
See Also:
Constant Field Values

SND_SEQ_INSTR_ID_OPL2_3

public static final String SND_SEQ_INSTR_ID_OPL2_3
See Also:
Constant Field Values

SND_SEQ_INSTR_ID_OPL4

public static final String SND_SEQ_INSTR_ID_OPL4
See Also:
Constant Field Values

SND_SEQ_INSTR_TYPE0_DLS1

public static final int SND_SEQ_INSTR_TYPE0_DLS1
See Also:
Constant Field Values

SND_SEQ_INSTR_TYPE0_DLS2

public static final int SND_SEQ_INSTR_TYPE0_DLS2
See Also:
Constant Field Values

SND_SEQ_INSTR_TYPE1_SIMPLE

public static final int SND_SEQ_INSTR_TYPE1_SIMPLE
See Also:
Constant Field Values

SND_SEQ_INSTR_TYPE1_SOUNDFONT

public static final int SND_SEQ_INSTR_TYPE1_SOUNDFONT
See Also:
Constant Field Values

SND_SEQ_INSTR_TYPE1_GUS_PATCH

public static final int SND_SEQ_INSTR_TYPE1_GUS_PATCH
See Also:
Constant Field Values

SND_SEQ_INSTR_TYPE1_INTERWAVE

public static final int SND_SEQ_INSTR_TYPE1_INTERWAVE
See Also:
Constant Field Values

SND_SEQ_INSTR_TYPE2_OPL2_3

public static final int SND_SEQ_INSTR_TYPE2_OPL2_3
See Also:
Constant Field Values

SND_SEQ_INSTR_TYPE2_OPL4

public static final int SND_SEQ_INSTR_TYPE2_OPL4
See Also:
Constant Field Values

SND_SEQ_INSTR_PUT_CMD_CREATE

public static final int SND_SEQ_INSTR_PUT_CMD_CREATE
See Also:
Constant Field Values

SND_SEQ_INSTR_PUT_CMD_REPLACE

public static final int SND_SEQ_INSTR_PUT_CMD_REPLACE
See Also:
Constant Field Values

SND_SEQ_INSTR_PUT_CMD_MODIFY

public static final int SND_SEQ_INSTR_PUT_CMD_MODIFY
See Also:
Constant Field Values

SND_SEQ_INSTR_PUT_CMD_ADD

public static final int SND_SEQ_INSTR_PUT_CMD_ADD
See Also:
Constant Field Values

SND_SEQ_INSTR_PUT_CMD_REMOVE

public static final int SND_SEQ_INSTR_PUT_CMD_REMOVE
See Also:
Constant Field Values

SND_SEQ_INSTR_GET_CMD_FULL

public static final int SND_SEQ_INSTR_GET_CMD_FULL
See Also:
Constant Field Values

SND_SEQ_INSTR_GET_CMD_PARTIAL

public static final int SND_SEQ_INSTR_GET_CMD_PARTIAL
See Also:
Constant Field Values

SND_SEQ_INSTR_QUERY_FOLLOW_ALIAS

public static final int SND_SEQ_INSTR_QUERY_FOLLOW_ALIAS
See Also:
Constant Field Values

SND_SEQ_INSTR_FREE_CMD_ALL

public static final int SND_SEQ_INSTR_FREE_CMD_ALL
See Also:
Constant Field Values

SND_SEQ_INSTR_FREE_CMD_PRIVATE

public static final int SND_SEQ_INSTR_FREE_CMD_PRIVATE
See Also:
Constant Field Values

SND_SEQ_INSTR_FREE_CMD_CLUSTER

public static final int SND_SEQ_INSTR_FREE_CMD_CLUSTER
See Also:
Constant Field Values

SND_SEQ_INSTR_FREE_CMD_SINGLE

public static final int SND_SEQ_INSTR_FREE_CMD_SINGLE
See Also:
Constant Field Values
Constructor Detail

AlsaSeq

public AlsaSeq()

AlsaSeq

public AlsaSeq(String strClientName)
Method Detail

close

public void close()
Closes the sequencer. Calls snd_seq_close().


getName

public String getName()

getType

public int getType()

setNonblock

public int setNonblock(boolean bNonblock)

getClientId

public int getClientId()

getOutputBufferSize

public int getOutputBufferSize()

getInputBufferSize

public int getInputBufferSize()

setOutputBufferSize

public int setOutputBufferSize(int nSize)

setInputBufferSize

public int setInputBufferSize(int nSize)

getSystemInfo

public int getSystemInfo(AlsaSeqSystemInfo systemInfo)

getClientInfo

public int getClientInfo(AlsaSeqClientInfo clientInfo)

getClientInfo

public int getClientInfo(int nClient,
                         AlsaSeqClientInfo clientInfo)

setClientInfo

public int setClientInfo(AlsaSeqClientInfo clientInfo)

getNextClient

public int getNextClient(int nClient,
                         int[] anValues)
Gets information about the next client. Calls snd_seq_query_next_client(). and puts the returned values into the passed arrays. nClient has to be -1 to start, or a client id returned by a previous call to this method. anValues[0] client id Returns 0 if successful.


setClientName

public void setClientName(String strName)

getPortInfo

public int getPortInfo(int nPort,
                       AlsaSeqPortInfo portInfo)

getPortInfo

public int getPortInfo(int nClient,
                       int nPort,
                       AlsaSeqPortInfo portInfo)

getNextPort

public int getNextPort(int nClient,
                       int nPort,
                       int[] anValues)
Gets the next port. Calls snd_seq_query_next_port(). and put the returned values into the passed arrays. nClient has to be a valid client. nPort has to be -1 to start, or a port returned by a previous call to this method. anValues[0] client anValues[1] port Returns 0 if successful.


createPort

public int createPort(String strName,
                      int nCapabilities,
                      int nGroupPermissions,
                      int nType,
                      int nMidiChannels,
                      int nMidiVoices,
                      int nSynthVoices)

allocQueue

public int allocQueue()
Allocates (reserves) a sequencing queue. Calls snd_seq_alloc_queue().

Returns:
the queue number (>= 0), if successful. A negative value otherwise.

freeQueue

public int freeQueue(int nQueue)
Frees a sequencing queue. Calls snd_seq_free_queue().

Parameters:
nQueue - a queue number that has previously been allocated with allocQueue().
Returns:
0 if successful. A negative value otherwise.

getQueueUsage

public boolean getQueueUsage(int nQueue)
Get the queue usage flag. Calls snd_seq_get_queue_usage().

Parameters:
nQueue - a queue number that has previously been allocated with allocQueue().
Returns:
true if the client is allowed to access the queue. false otherwise.

setQueueUsage

public int setQueueUsage(int nQueue,
                         boolean bUsageAllowed)
Set the queue usage flag. Calls snd_seq_set_queue_usage().

Parameters:
nQueue - a queue number that has previously been allocated with allocQueue().
bUsageAllowed - true to allow the client access to this queue. false to deny it.
Returns:
0 if successful. A negative value otherwise.

getQueueInfo

public int getQueueInfo(int nQueue,
                        AlsaSeqQueueInfo queueInfo)
Get the queue information. This method fills a QueueInfo instance with information from the given queue. Internally, snd_seq_get_queue_info() is called.

Returns:
returns 0 on success, otherwise a negative value.

setQueueInfo

public int setQueueInfo(int nQueue,
                        AlsaSeqQueueInfo queueInfo)
Set the queue information. This method sets the information for the given queue from the QueueInfo instance. Internally, snd_seq_set_queue_info() is called.

Returns:
returns 0 on success, otherwise a negative value.

getQueueStatus

public int getQueueStatus(int nQueue,
                          AlsaSeqQueueStatus queueStatus)
Get the queue status. This method fills a QueueStatus instance with information from the given queue. Internally, snd_seq_get_queue_status() is called.

Returns:
returns 0 on success, otherwise a negative value.

getQueueTempo

public int getQueueTempo(int nQueue,
                         AlsaSeqQueueTempo queueTempo)
Get the queue tempo. This method fills a QueueTempo instance with information from the given queue. Internally, snd_seq_get_queue_tempo() is called.

Returns:
returns 0 on success, otherwise a negative value.

setQueueTempo

public int setQueueTempo(int nQueue,
                         AlsaSeqQueueTempo queueTempo)
Set the queue tempo. This method sets the information for the given queue from the QueueTempo instance. Internally, snd_seq_set_queue_tempo() is called.

Returns:
returns 0 on success, otherwise a negative value.

getQueueTimer

public int getQueueTimer(int nQueue,
                         AlsaSeqQueueTimer queueTimer)
Get the queue timer. This method fills a QueueTimer instance with information from the given queue. Internally, snd_seq_get_queue_timer() is called.

Returns:
returns 0 on success, otherwise a negative value.

setQueueTimer

public int setQueueTimer(int nQueue,
                         AlsaSeqQueueTimer queueTimer)
Set the queue timer. This method sets the timer for the given queue from the QueueTimer instance. Internally, snd_seq_set_queue_timer() is called.

Returns:
returns 0 on success, otherwise a negative value.

getPortSubscription

public int getPortSubscription(AlsaSeqPortSubscribe portSubscribe)

subscribePort

public int subscribePort(AlsaSeqPortSubscribe portSubscribe)

unsubscribePort

public int unsubscribePort(AlsaSeqPortSubscribe portSubscribe)

getClientInfos

public Iterator getClientInfos()

getPortInfos

public Iterator getPortInfos(int nClient)

eventOutput

public int eventOutput(AlsaSeqEvent event)

eventOutputBuffer

public int eventOutputBuffer(AlsaSeqEvent event)

eventOutputDirect

public int eventOutputDirect(AlsaSeqEvent event)

eventInput

public int eventInput(AlsaSeqEvent event)

eventInputPending

public int eventInputPending(int nFetchSequencer)

drainOutput

public int drainOutput()

eventOutputPending

public int eventOutputPending()

extractOutput

public int extractOutput(AlsaSeqEvent event)

dropOutput

public int dropOutput()

dropOutputBuffer

public int dropOutputBuffer()

dropInput

public int dropInput()

dropInputBuffer

public int dropInputBuffer()