From 41bb7068f2e8b54c73874f40efcc89204f9992e0 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 20 Nov 2000 20:10:46 +0000 Subject: Merged pcmfinal branch. --- include/seq.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'include/seq.h') diff --git a/include/seq.h b/include/seq.h index 2ba07c6c..b2a566f5 100644 --- a/include/seq.h +++ b/include/seq.h @@ -5,20 +5,28 @@ * * ****************************************************************************/ -#define SND_SEQ_OPEN_OUT (O_WRONLY) -#define SND_SEQ_OPEN_IN (O_RDONLY) -#define SND_SEQ_OPEN (O_RDWR) +#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 1 #ifdef __cplusplus extern "C" { #endif -typedef struct snd_seq snd_seq_t; +typedef enum _snd_seq_type { + SND_SEQ_TYPE_HW, + SND_SEQ_TYPE_SHM, + SND_SEQ_TYPE_INET, +} snd_seq_type_t; + +typedef struct _snd_seq snd_seq_t; -int snd_seq_open(snd_seq_t **handle, int mode); +int snd_seq_open(snd_seq_t **handle, char *name, int streams, int mode); int snd_seq_close(snd_seq_t *handle); int snd_seq_poll_descriptor(snd_seq_t *handle); -int snd_seq_block_mode(snd_seq_t *handle, int enable); +int snd_seq_nonblock(snd_seq_t *handle, int nonblock); int snd_seq_client_id(snd_seq_t *handle); int snd_seq_output_buffer_size(snd_seq_t *handle); int snd_seq_input_buffer_size(snd_seq_t *handle); -- cgit v1.2.3