diff options
author | Jaroslav Kysela <perex@perex.cz> | 2000-11-20 20:10:46 +0000 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2000-11-20 20:10:46 +0000 |
commit | 41bb7068f2e8b54c73874f40efcc89204f9992e0 (patch) | |
tree | 849db082c98e4442e480d5b673bd42c2ab0ec339 /include/seq.h | |
parent | 3cc2b957fbe73dcdf34f34ce70e6b85e06d915d0 (diff) |
Merged pcmfinal branch.
Diffstat (limited to 'include/seq.h')
-rw-r--r-- | include/seq.h | 20 |
1 files changed, 14 insertions, 6 deletions
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); |