MIDI Sequencer

Modules

 Sequencer Client Interface
 Sequencer Port Interface
 Sequencer Port Subscription
 Sequencer Queue Interface
 Sequencer Event API
 Sequencer Miscellaneous
 Sequencer Event Type Checks
 Sequencer Event Definitions
 Sequencer Middle Level Interface
 Sequencer event <-> MIDI byte stream coder

Defines

#define SND_SEQ_DLSYM_VERSION   _dlsym_seq_001
#define SND_SEQ_OPEN_OUTPUT   1
#define SND_SEQ_OPEN_INPUT   2
#define SND_SEQ_OPEN_DUPLEX   (SND_SEQ_OPEN_OUTPUT|SND_SEQ_OPEN_INPUT)
#define SND_SEQ_NONBLOCK   0x0001
#define SND_SEQ_ADDRESS_UNKNOWN   253
#define SND_SEQ_ADDRESS_SUBSCRIBERS   254
#define SND_SEQ_ADDRESS_BROADCAST   255
#define SND_SEQ_CLIENT_SYSTEM   0
#define snd_seq_system_info_alloca(ptr)   __snd_alloca(ptr, snd_seq_system_info)

Typedefs

typedef struct _snd_seq snd_seq_t
typedef struct _snd_seq_system_info snd_seq_system_info_t

Enumerations

enum  snd_seq_type_t { SND_SEQ_TYPE_HW, SND_SEQ_TYPE_SHM, SND_SEQ_TYPE_INET }

Functions

int snd_seq_open (snd_seq_t **handle, const char *name, int streams, int mode)
int snd_seq_open_lconf (snd_seq_t **handle, const char *name, int streams, int mode, snd_config_t *lconf)
const char * snd_seq_name (snd_seq_t *seq)
snd_seq_type_t snd_seq_type (snd_seq_t *seq)
int snd_seq_close (snd_seq_t *handle)
int snd_seq_poll_descriptors_count (snd_seq_t *handle, short events)
int snd_seq_poll_descriptors (snd_seq_t *handle, struct pollfd *pfds, unsigned int space, short events)
int snd_seq_poll_descriptors_revents (snd_seq_t *seq, struct pollfd *pfds, unsigned int nfds, unsigned short *revents)
int snd_seq_nonblock (snd_seq_t *handle, int nonblock)
int snd_seq_client_id (snd_seq_t *handle)
size_t snd_seq_get_output_buffer_size (snd_seq_t *handle)
size_t snd_seq_get_input_buffer_size (snd_seq_t *handle)
int snd_seq_set_output_buffer_size (snd_seq_t *handle, size_t size)
int snd_seq_set_input_buffer_size (snd_seq_t *handle, size_t size)
size_t snd_seq_system_info_sizeof (void)
int snd_seq_system_info_malloc (snd_seq_system_info_t **ptr)
void snd_seq_system_info_free (snd_seq_system_info_t *ptr)
void snd_seq_system_info_copy (snd_seq_system_info_t *dst, const snd_seq_system_info_t *src)
int snd_seq_system_info_get_queues (const snd_seq_system_info_t *info)
int snd_seq_system_info_get_clients (const snd_seq_system_info_t *info)
int snd_seq_system_info_get_ports (const snd_seq_system_info_t *info)
int snd_seq_system_info_get_channels (const snd_seq_system_info_t *info)
int snd_seq_system_info_get_cur_clients (const snd_seq_system_info_t *info)
int snd_seq_system_info_get_cur_queues (const snd_seq_system_info_t *info)
int snd_seq_system_info (snd_seq_t *handle, snd_seq_system_info_t *info)

Detailed Description

MIDI Sequencer Interface. See seq page for more details.


Define Documentation

#define SND_SEQ_ADDRESS_BROADCAST   255

send event to all queues/clients/ports/channels

#define SND_SEQ_ADDRESS_SUBSCRIBERS   254

send event to all subscribed ports

#define SND_SEQ_ADDRESS_UNKNOWN   253

special client (port) ids unknown source

#define SND_SEQ_CLIENT_SYSTEM   0

known client numbers system client

#define SND_SEQ_DLSYM_VERSION   _dlsym_seq_001

dlsym version for interface entry callback

#define SND_SEQ_NONBLOCK   0x0001

sequencer opening mode non-blocking mode (flag to open mode)

#define SND_SEQ_OPEN_DUPLEX   (SND_SEQ_OPEN_OUTPUT|SND_SEQ_OPEN_INPUT)

open for both input and output (read/write)

#define SND_SEQ_OPEN_INPUT   2

open for input (read)

#define SND_SEQ_OPEN_OUTPUT   1

sequencer opening stream types open for output (write)

#define snd_seq_system_info_alloca ( ptr   )     __snd_alloca(ptr, snd_seq_system_info)

allocate a snd_seq_system_info_t container on stack


Typedef Documentation

typedef struct _snd_seq_system_info snd_seq_system_info_t

system information container

typedef struct _snd_seq snd_seq_t

Sequencer handle


Enumeration Type Documentation

sequencer handle type

Enumerator:
SND_SEQ_TYPE_HW 

hardware

SND_SEQ_TYPE_SHM 

shared memory (NYI)

SND_SEQ_TYPE_INET 

network (NYI)

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Fri Jan 27 14:19:57 2012 for ALSA project - the C library reference by  doxygen 1.6.3