diff options
author | Jaroslav Kysela <perex@perex.cz> | 2000-09-24 09:57:26 +0000 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2000-09-24 09:57:26 +0000 |
commit | 6962a9d6cef35b0bbbfc90c80584e6b2beac3841 (patch) | |
tree | 69e647500c337b71d262da26307416c7cfd8a2d8 /include | |
parent | 40d1ee071dcc41fc12823d1169f993c2a2feb66f (diff) |
Merged pcmplug branch.
Diffstat (limited to 'include')
-rw-r--r-- | include/aserver.h | 23 | ||||
-rw-r--r-- | include/control.h | 2 | ||||
-rw-r--r-- | include/header.h | 1 | ||||
-rw-r--r-- | include/hwdep.h | 2 | ||||
-rw-r--r-- | include/mixer.h | 2 | ||||
-rw-r--r-- | include/pcm.h | 258 | ||||
-rw-r--r-- | include/rawmidi.h | 2 | ||||
-rw-r--r-- | include/seq.h | 2 | ||||
-rw-r--r-- | include/timer.h | 2 |
9 files changed, 74 insertions, 220 deletions
diff --git a/include/aserver.h b/include/aserver.h index fb7164ed..aef553a8 100644 --- a/include/aserver.h +++ b/include/aserver.h @@ -19,13 +19,16 @@ */ -#define SND_PCM_IOCTL_MMAP_DATA _IO ('A', 0xf0) -#define SND_PCM_IOCTL_MMAP_CONTROL _IO ('A', 0xf1) -#define SND_PCM_IOCTL_MMAP_STATUS _IO ('A', 0xf2) -#define SND_PCM_IOCTL_MUNMAP_DATA _IO ('A', 0xf3) -#define SND_PCM_IOCTL_MUNMAP_CONTROL _IO ('A', 0xf4) -#define SND_PCM_IOCTL_MUNMAP_STATUS _IO ('A', 0xf5) -#define SND_PCM_IOCTL_CLOSE _IO ('A', 0xf6) +#define SND_PCM_IOCTL_STATE _IO ('A', 0xf0) +#define SND_PCM_IOCTL_MMAP_DATA _IO ('A', 0xf1) +#define SND_PCM_IOCTL_MMAP_CONTROL _IO ('A', 0xf2) +#define SND_PCM_IOCTL_MMAP_STATUS _IO ('A', 0xf3) +#define SND_PCM_IOCTL_MUNMAP_DATA _IO ('A', 0xf4) +#define SND_PCM_IOCTL_MUNMAP_CONTROL _IO ('A', 0xf5) +#define SND_PCM_IOCTL_MUNMAP_STATUS _IO ('A', 0xf6) +#define SND_PCM_IOCTL_MMAP_FORWARD _IOW('A', 0xf7, size_t) +#define SND_PCM_IOCTL_AVAIL_UPDATE _IO ('A', 0xf8) +#define SND_PCM_IOCTL_CLOSE _IO ('A', 0xf9) typedef struct { int result; @@ -36,6 +39,7 @@ typedef struct { snd_pcm_params_info_t params_info; snd_pcm_setup_t setup; snd_pcm_status_t status; + ssize_t delay; int pause; snd_pcm_channel_info_t channel_info; snd_pcm_channel_params_t channel_params; @@ -43,10 +47,7 @@ typedef struct { off_t appl_ptr; int hw_ptr; int link; - snd_xfer_t read; - snd_xfer_t write; - snd_xferv_t readv; - snd_xferv_t writev; + size_t mmap_forward; } u; char data[0]; } snd_pcm_client_shm_t; diff --git a/include/control.h b/include/control.h index f68b5ac0..07ad251e 100644 --- a/include/control.h +++ b/include/control.h @@ -42,7 +42,7 @@ int snd_ctl_client_open(snd_ctl_t **handlep, char *host, int port, int transport snd_ctl_type_t snd_ctl_type(snd_ctl_t *handle); int snd_ctl_open(snd_ctl_t **handle, char *name); int snd_ctl_close(snd_ctl_t *handle); -int snd_ctl_file_descriptor(snd_ctl_t *handle); +int snd_ctl_poll_descriptor(snd_ctl_t *handle); int snd_ctl_hw_info(snd_ctl_t *handle, snd_ctl_hw_info_t *info); int snd_ctl_clist(snd_ctl_t *handle, snd_control_list_t * list); int snd_ctl_cinfo(snd_ctl_t *handle, snd_control_info_t * sw); diff --git a/include/header.h b/include/header.h index 6c667bd2..6875e256 100644 --- a/include/header.h +++ b/include/header.h @@ -30,6 +30,7 @@ #include <stdlib.h> #include <string.h> #include <fcntl.h> +#include <sys/uio.h> #ifndef ATTRIBUTE_UNUSED #define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) diff --git a/include/hwdep.h b/include/hwdep.h index 81918192..6446543b 100644 --- a/include/hwdep.h +++ b/include/hwdep.h @@ -18,7 +18,7 @@ typedef struct snd_hwdep snd_hwdep_t; int snd_hwdep_open(snd_hwdep_t **handle, int card, int device, int mode); int snd_hwdep_close(snd_hwdep_t *handle); -int snd_hwdep_file_descriptor(snd_hwdep_t *handle); +int snd_hwdep_poll_descriptor(snd_hwdep_t *handle); int snd_hwdep_block_mode(snd_hwdep_t *handle, int enable); int snd_hwdep_info(snd_hwdep_t *handle, snd_hwdep_info_t * info); int snd_hwdep_ioctl(snd_hwdep_t *handle, int request, void * arg); diff --git a/include/mixer.h b/include/mixer.h index 1daef64e..f7eab69b 100644 --- a/include/mixer.h +++ b/include/mixer.h @@ -13,7 +13,7 @@ extern "C" { int snd_mixer_open(snd_mixer_t **handle, char *name); int snd_mixer_close(snd_mixer_t *handle); -int snd_mixer_file_descriptor(snd_mixer_t *handle); +int snd_mixer_poll_descriptor(snd_mixer_t *handle); #ifdef __cplusplus } diff --git a/include/pcm.h b/include/pcm.h index 25a20e02..a559176e 100644 --- a/include/pcm.h +++ b/include/pcm.h @@ -98,18 +98,42 @@ static inline size_t bitset_count(bitset_t *bitset, size_t nbits) typedef struct snd_pcm snd_pcm_t; typedef struct snd_pcm_loopback snd_pcm_loopback_t; -typedef enum { SND_PCM_TYPE_HW, SND_PCM_TYPE_PLUG, SND_PCM_TYPE_MULTI, SND_PCM_TYPE_CLIENT } snd_pcm_type_t; +typedef enum { + SND_PCM_TYPE_HW, + SND_PCM_TYPE_MULTI, + SND_PCM_TYPE_FILE, + SND_PCM_TYPE_NULL, + SND_PCM_TYPE_CLIENT, + SND_PCM_TYPE_LINEAR, + SND_PCM_TYPE_ALAW, + SND_PCM_TYPE_MULAW, + SND_PCM_TYPE_ADPCM, + SND_PCM_TYPE_RATE, + SND_PCM_TYPE_ROUTE, + SND_PCM_TYPE_COPY, + SND_PCM_TYPE_PLUG, + SND_PCM_TYPE_DROUTE, + SND_PCM_TYPE_LBSERVER, +} snd_pcm_type_t; int snd_pcm_open(snd_pcm_t **handle, char *name, int stream, int mode); +/* Obsolete functions */ int snd_pcm_hw_open_subdevice(snd_pcm_t **handle, int card, int device, int subdevice, int stream, int mode); -int snd_pcm_hw_open(snd_pcm_t **handle, int card, int device, int stream, int mode); +int snd_pcm_hw_open_device(snd_pcm_t **handle, int card, int device, int stream, int mode); +int snd_pcm_plug_open_subdevice(snd_pcm_t **handle, int card, int device, int subdevice, int stream, int mode); +int snd_pcm_plug_open_device(snd_pcm_t **handle, int card, int device, int stream, int mode); +#define snd_pcm_write snd_pcm_writei +#define snd_pcm_read snd_pcm_readi +ssize_t snd_pcm_writev(snd_pcm_t *handle, const struct iovec *vector, int count); +ssize_t snd_pcm_readv(snd_pcm_t *handle, const struct iovec *vector, int count); + snd_pcm_type_t snd_pcm_type(snd_pcm_t *handle); int snd_pcm_close(snd_pcm_t *handle); -int snd_pcm_file_descriptor(snd_pcm_t *handle); +int snd_pcm_poll_descriptor(snd_pcm_t *handle); int snd_pcm_nonblock(snd_pcm_t *handle, int nonblock); int snd_pcm_info(snd_pcm_t *handle, snd_pcm_info_t *info); int snd_pcm_params_info(snd_pcm_t *handle, snd_pcm_params_info_t *info); @@ -120,65 +144,55 @@ int snd_pcm_channel_params(snd_pcm_t *handle, snd_pcm_channel_params_t *params); int snd_pcm_channel_setup(snd_pcm_t *handle, snd_pcm_channel_setup_t *setup); int snd_pcm_status(snd_pcm_t *handle, snd_pcm_status_t *status); int snd_pcm_prepare(snd_pcm_t *handle); -int snd_pcm_go(snd_pcm_t *handle); -int snd_pcm_drain(snd_pcm_t *handle); +int snd_pcm_start(snd_pcm_t *handle); +int snd_pcm_stop(snd_pcm_t *handle); int snd_pcm_flush(snd_pcm_t *handle); int snd_pcm_pause(snd_pcm_t *handle, int enable); int snd_pcm_state(snd_pcm_t *handle); -ssize_t snd_pcm_hw_ptr(snd_pcm_t *handle, int update); +int snd_pcm_delay(snd_pcm_t *handle, ssize_t *delayp); +size_t snd_pcm_hw_ptr(snd_pcm_t *handle); ssize_t snd_pcm_appl_ptr(snd_pcm_t *handle, off_t offset); -ssize_t snd_pcm_write(snd_pcm_t *handle, const void *buffer, size_t size); -ssize_t snd_pcm_read(snd_pcm_t *handle, void *buffer, size_t size); -ssize_t snd_pcm_writev(snd_pcm_t *handle, const struct iovec *vector, unsigned long count); -ssize_t snd_pcm_readv(snd_pcm_t *handle, const struct iovec *vector, unsigned long count); +ssize_t snd_pcm_writei(snd_pcm_t *handle, const void *buffer, size_t size); +ssize_t snd_pcm_readi(snd_pcm_t *handle, void *buffer, size_t size); +ssize_t snd_pcm_writen(snd_pcm_t *handle, void **bufs, size_t size); +ssize_t snd_pcm_readn(snd_pcm_t *handle, void **bufs, size_t size); int snd_pcm_dump_setup(snd_pcm_t *handle, FILE *fp); int snd_pcm_dump(snd_pcm_t *handle, FILE *fp); +int snd_pcm_dump_status(snd_pcm_status_t *status, FILE *fp); int snd_pcm_link(snd_pcm_t *handle1, snd_pcm_t *handle2); int snd_pcm_unlink(snd_pcm_t *handle); -int snd_pcm_channels_mask(snd_pcm_t *handle, bitset_t *client_vmask); +int snd_pcm_channels_mask(snd_pcm_t *handle, bitset_t *cmask); +int snd_pcm_wait(snd_pcm_t *pcm, int timeout); +ssize_t snd_pcm_avail_update(snd_pcm_t *pcm); + /* mmap */ -int snd_pcm_mmap(snd_pcm_t *handle, snd_pcm_mmap_status_t **status, snd_pcm_mmap_control_t **control, void **buffer); +int snd_pcm_mmap(snd_pcm_t *handle, void **buffer); int snd_pcm_munmap(snd_pcm_t *handle); -int snd_pcm_mmap_state(snd_pcm_t *handle); -ssize_t snd_pcm_mmap_hw_ptr(snd_pcm_t *handle); -ssize_t snd_pcm_mmap_appl_ptr(snd_pcm_t *handle, off_t offset); -int snd_pcm_mmap_status(snd_pcm_t *handle, snd_pcm_mmap_status_t **status); -int snd_pcm_mmap_control(snd_pcm_t *handle, snd_pcm_mmap_control_t **control); -int snd_pcm_mmap_data(snd_pcm_t *handle, void **buffer); -int snd_pcm_munmap_status(snd_pcm_t *handle); -int snd_pcm_munmap_control(snd_pcm_t *handle); -int snd_pcm_munmap_data(snd_pcm_t *handle); -int snd_pcm_mmap_ready(snd_pcm_t *handle); -ssize_t snd_pcm_mmap_write(snd_pcm_t *handle, const void *buffer, size_t size); -ssize_t snd_pcm_mmap_read(snd_pcm_t *handle, void *buffer, size_t size); -ssize_t snd_pcm_mmap_writev(snd_pcm_t *handle, const struct iovec *vector, unsigned long count); -ssize_t snd_pcm_mmap_readv(snd_pcm_t *handle, const struct iovec *vector, unsigned long count); -int snd_pcm_mmap_avail(snd_pcm_t *handle, ssize_t *frames); -ssize_t snd_pcm_mmap_xfer(snd_pcm_t *handle, size_t frames); -ssize_t snd_pcm_mmap_offset(snd_pcm_t *handle); -ssize_t snd_pcm_mmap_write_areas(snd_pcm_t *handle, snd_pcm_channel_area_t *channels, size_t frames); -ssize_t snd_pcm_mmap_write_frames(snd_pcm_t *handle, const void *buffer, size_t frames); -ssize_t snd_pcm_mmap_read_areas(snd_pcm_t *handle, snd_pcm_channel_area_t *channels, size_t frames); -ssize_t snd_pcm_mmap_read_frames(snd_pcm_t *handle, const void *buffer, size_t frames); int snd_pcm_mmap_get_areas(snd_pcm_t *handle, snd_pcm_channel_area_t *areas); - +ssize_t snd_pcm_mmap_forward(snd_pcm_t *pcm, size_t size); +size_t snd_pcm_mmap_offset(snd_pcm_t *pcm); +size_t snd_pcm_mmap_xfer(snd_pcm_t *pcm, size_t size); +ssize_t snd_pcm_mmap_writei(snd_pcm_t *handle, const void *buffer, size_t size); +ssize_t snd_pcm_mmap_readi(snd_pcm_t *handle, void *buffer, size_t size); +ssize_t snd_pcm_mmap_writen(snd_pcm_t *handle, void **bufs, size_t size); +ssize_t snd_pcm_mmap_readn(snd_pcm_t *handle, void **bufs, size_t size); const char *snd_pcm_format_name(int format); const char *snd_pcm_format_description(int format); int snd_pcm_format_value(const char* name); -int snd_pcm_area_silence(const snd_pcm_channel_area_t *dst_channel, size_t dst_offset, +int snd_pcm_area_silence(snd_pcm_channel_area_t *dst_channel, size_t dst_offset, size_t samples, int format); -int snd_pcm_areas_silence(const snd_pcm_channel_area_t *dst_channels, size_t dst_offset, +int snd_pcm_areas_silence(snd_pcm_channel_area_t *dst_channels, size_t dst_offset, size_t vcount, size_t frames, int format); -int snd_pcm_area_copy(const snd_pcm_channel_area_t *src_channel, size_t src_offset, - const snd_pcm_channel_area_t *dst_channel, size_t dst_offset, +int snd_pcm_area_copy(snd_pcm_channel_area_t *src_channel, size_t src_offset, + snd_pcm_channel_area_t *dst_channel, size_t dst_offset, size_t samples, int format); -int snd_pcm_areas_copy(const snd_pcm_channel_area_t *src_channels, size_t src_offset, - const snd_pcm_channel_area_t *dst_channels, size_t dst_offset, - size_t vcount, size_t frames, int format); +int snd_pcm_areas_copy(snd_pcm_channel_area_t *src_channels, size_t src_offset, + snd_pcm_channel_area_t *dst_channels, size_t dst_offset, + size_t channels, size_t frames, int format); ssize_t snd_pcm_bytes_to_frames(snd_pcm_t *pcm, ssize_t bytes); ssize_t snd_pcm_frames_to_bytes(snd_pcm_t *pcm, ssize_t frames); @@ -207,165 +221,3 @@ ssize_t snd_pcm_format_set_silence(int format, void *buf, size_t count); } #endif -/* - * PCM Plug-In interface - */ - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct snd_stru_pcm_plugin snd_pcm_plugin_t; -#define snd_pcm_plug_t struct snd_pcm_plug - -typedef enum { - INIT = 0, - PREPARE = 1, - DRAIN = 2, - FLUSH = 3, - PAUSE = 4, -} snd_pcm_plugin_action_t; - -typedef struct snd_stru_pcm_plugin_channel { - snd_pcm_channel_area_t area; - unsigned int enabled:1; /* channel need to be processed */ - unsigned int wanted:1; /* channel is wanted */ -} snd_pcm_plugin_channel_t; - -struct snd_stru_pcm_plugin { - char *name; /* plug-in name */ - int stream; - snd_pcm_format_t src_format; /* source format */ - snd_pcm_format_t dst_format; /* destination format */ - int src_width; /* sample width in bits */ - int dst_width; /* sample width in bits */ - ssize_t (*src_frames)(snd_pcm_plugin_t *plugin, size_t dst_frames); - ssize_t (*dst_frames)(snd_pcm_plugin_t *plugin, size_t src_frames); - ssize_t (*client_channels)(snd_pcm_plugin_t *plugin, - size_t frames, - snd_pcm_plugin_channel_t **channels); - int (*src_channels_mask)(snd_pcm_plugin_t *plugin, - bitset_t *dst_vmask, - bitset_t **src_vmask); - int (*dst_channels_mask)(snd_pcm_plugin_t *plugin, - bitset_t *src_vmask, - bitset_t **dst_vmask); - ssize_t (*transfer)(snd_pcm_plugin_t *plugin, - const snd_pcm_plugin_channel_t *src_channels, - snd_pcm_plugin_channel_t *dst_channels, - size_t frames); - int (*action)(snd_pcm_plugin_t *plugin, - snd_pcm_plugin_action_t action, - unsigned long data); - int (*parameter_set)(snd_pcm_plugin_t *plugin, - const char *name, - unsigned long value); - int (*parameter_get)(snd_pcm_plugin_t *plugin, - const char *name, - unsigned long *value); - void (*dump)(snd_pcm_plugin_t *plugin, FILE *fp); - snd_pcm_plugin_t *prev; - snd_pcm_plugin_t *next; - snd_pcm_plug_t *plug; - void *private_data; - void (*private_free)(snd_pcm_plugin_t *plugin); - char *buf; - size_t buf_frames; - snd_pcm_plugin_channel_t *buf_channels; - bitset_t *src_vmask; - bitset_t *dst_vmask; - char extra_data[0]; -}; - -int snd_pcm_plug_create(snd_pcm_t **handle, snd_pcm_t *slave, int close_slave); -int snd_pcm_plug_open_subdevice(snd_pcm_t **handle, int card, int device, int subdevice, int stream, int mode); -int snd_pcm_plug_open(snd_pcm_t **handle, int card, int device, int stream, int mode); - -int snd_pcm_plugin_free(snd_pcm_plugin_t *plugin); -int snd_pcm_plugin_insert(snd_pcm_plugin_t *plugin); -int snd_pcm_plugin_append(snd_pcm_plugin_t *plugin); -void snd_pcm_plugin_dump(snd_pcm_plugin_t *plugin, FILE *fp); -int snd_pcm_plug_alloc(snd_pcm_plug_t *plug, size_t frames); -int snd_pcm_plug_clear(snd_pcm_plug_t *plug); -snd_pcm_plugin_t *snd_pcm_plug_first(snd_pcm_plug_t *plug); -snd_pcm_plugin_t *snd_pcm_plug_last(snd_pcm_plug_t *plug); -int snd_pcm_plug_direct(snd_pcm_plug_t *plug); -ssize_t snd_pcm_plug_client_size(snd_pcm_plug_t *plug, size_t drv_frames); -ssize_t snd_pcm_plug_slave_size(snd_pcm_plug_t *plug, size_t clt_frames); - -/* - * Plug-In constructors - */ - -int snd_pcm_plugin_build(snd_pcm_plug_t *plug, - const char *name, - snd_pcm_format_t *src_format, - snd_pcm_format_t *dst_format, - size_t extra, - snd_pcm_plugin_t **ret); -/* basic I/O */ -int snd_pcm_plugin_build_io(snd_pcm_plug_t *plug, - snd_pcm_format_t *format, - snd_pcm_plugin_t **r_plugin); -int snd_pcm_plugin_build_mmap(snd_pcm_plug_t *plug, - snd_pcm_format_t *format, - snd_pcm_plugin_t **r_plugin); - -#define ROUTE_PLUGIN_USE_FLOAT 1 -#if ROUTE_PLUGIN_USE_FLOAT -#define FULL 1.0 -#define HALF 0.5 -typedef float route_ttable_entry_t; -#else -#define FULL ROUTE_PLUGIN_RESOLUTION -#define HALF ROUTE_PLUGIN_RESOLUTION / 2 -typedef int route_ttable_entry_t; -#endif - -/* conversion plugins */ -int snd_pcm_plugin_build_interleave(snd_pcm_plug_t *plug, - snd_pcm_format_t *src_format, - snd_pcm_format_t *dst_format, - snd_pcm_plugin_t **r_plugin); -int snd_pcm_plugin_build_linear(snd_pcm_plug_t *plug, - snd_pcm_format_t *src_format, - snd_pcm_format_t *dst_format, - snd_pcm_plugin_t **r_plugin); -int snd_pcm_plugin_build_mulaw(snd_pcm_plug_t *plug, - snd_pcm_format_t *src_format, - snd_pcm_format_t *dst_format, - snd_pcm_plugin_t **r_plugin); -int snd_pcm_plugin_build_alaw(snd_pcm_plug_t *plug, - snd_pcm_format_t *src_format, - snd_pcm_format_t *dst_format, - snd_pcm_plugin_t **r_plugin); -int snd_pcm_plugin_build_adpcm(snd_pcm_plug_t *plug, - snd_pcm_format_t *src_format, - snd_pcm_format_t *dst_format, - snd_pcm_plugin_t **r_plugin); -int snd_pcm_plugin_build_rate(snd_pcm_plug_t *plug, - snd_pcm_format_t *src_format, - snd_pcm_format_t *dst_format, - snd_pcm_plugin_t **r_plugin); -int snd_pcm_plugin_build_route(snd_pcm_plug_t *plug, - snd_pcm_format_t *src_format, - snd_pcm_format_t *dst_format, - route_ttable_entry_t *ttable, - snd_pcm_plugin_t **r_plugin); -int snd_pcm_plugin_build_copy(snd_pcm_plug_t *plug, - snd_pcm_format_t *src_format, - snd_pcm_format_t *dst_format, - snd_pcm_plugin_t **r_plugin); - -int snd_pcm_multi_create(snd_pcm_t **handlep, size_t slaves_count, - snd_pcm_t **slaves_handle, size_t *slaves_channels_count, - size_t binds_count, unsigned int *binds_client_channel, - unsigned int *binds_slave, unsigned int *binds_slave_channel, - int close_slaves); - -int snd_pcm_client_create(snd_pcm_t **handlep, char *host, int port, int transport, char *name, int stream, int mode); - -#ifdef __cplusplus -} -#endif - diff --git a/include/rawmidi.h b/include/rawmidi.h index 087b8821..5bdab976 100644 --- a/include/rawmidi.h +++ b/include/rawmidi.h @@ -20,7 +20,7 @@ typedef struct snd_rawmidi snd_rawmidi_t; int snd_rawmidi_open(snd_rawmidi_t **handle, int card, int device, int mode); int snd_rawmidi_close(snd_rawmidi_t *handle); -int snd_rawmidi_file_descriptor(snd_rawmidi_t *handle); +int snd_rawmidi_poll_descriptor(snd_rawmidi_t *handle); int snd_rawmidi_block_mode(snd_rawmidi_t *handle, int enable); int snd_rawmidi_info(snd_rawmidi_t *handle, snd_rawmidi_info_t * info); int snd_rawmidi_stream_params(snd_rawmidi_t *handle, snd_rawmidi_params_t * params); diff --git a/include/seq.h b/include/seq.h index 7e358060..3bd4989d 100644 --- a/include/seq.h +++ b/include/seq.h @@ -17,7 +17,7 @@ typedef struct snd_seq snd_seq_t; int snd_seq_open(snd_seq_t **handle, int mode); int snd_seq_close(snd_seq_t *handle); -int snd_seq_file_descriptor(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_client_id(snd_seq_t *handle); int snd_seq_output_buffer_size(snd_seq_t *handle); diff --git a/include/timer.h b/include/timer.h index 49c69437..a406d9c0 100644 --- a/include/timer.h +++ b/include/timer.h @@ -13,7 +13,7 @@ typedef struct snd_timer snd_timer_t; int snd_timer_open(snd_timer_t **handle); int snd_timer_close(snd_timer_t *handle); -int snd_timer_file_descriptor(snd_timer_t *handle); +int snd_timer_poll_descriptor(snd_timer_t *handle); int snd_timer_general_info(snd_timer_t *handle, snd_timer_general_info_t * info); int snd_timer_select(snd_timer_t *handle, snd_timer_select_t *tselect); int snd_timer_info(snd_timer_t *handle, snd_timer_info_t *timer); |