1999-03-08 16:51:36 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* timer.h *
|
|
|
|
* Timer interface *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
|
2001-01-30 16:51:26 +00:00
|
|
|
/* sndrv aliasing */
|
|
|
|
typedef enum sndrv_timer_type snd_timer_type_t;
|
|
|
|
typedef enum sndrv_timer_slave_type snd_timer_slave_type_t;
|
|
|
|
typedef enum sndrv_timer_global snd_timer_global_t;
|
|
|
|
typedef struct sndrv_timer_id snd_timer_id_t;
|
|
|
|
typedef struct sndrv_timer_select snd_timer_select_t;
|
|
|
|
typedef struct sndrv_timer_info snd_timer_info_t;
|
|
|
|
typedef struct sndrv_timer_params snd_timer_params_t;
|
|
|
|
typedef struct sndrv_timer_status snd_timer_status_t;
|
|
|
|
typedef struct sndrv_timer_read snd_timer_read_t;
|
|
|
|
#define SND_TIMER_TYPE_NONE SNDRV_TIMER_TYPE_NONE
|
|
|
|
#define SND_TIMER_TYPE_SLAVE SNDRV_TIMER_TYPE_SLAVE
|
|
|
|
#define SND_TIMER_TYPE_GLOBAL SNDRV_TIMER_TYPE_GLOBAL
|
|
|
|
#define SND_TIMER_TYPE_CARD SNDRV_TIMER_TYPE_CARD
|
|
|
|
#define SND_TIMER_TYPE_PCM SNDRV_TIMER_TYPE_PCM
|
|
|
|
#define SND_TIMER_STYPE_NONE SNDRV_TIMER_STYPE_NONE
|
|
|
|
#define SND_TIMER_STYPE_APPLICATION SNDRV_TIMER_STYPE_APPLICATION
|
|
|
|
#define SND_TIMER_STYPE_SEQUENCER SNDRV_TIMER_STYPE_SEQUENCER
|
|
|
|
#define SND_TIMER_STYPE_OSS_SEQUENCER SNDRV_TIMER_STYPE_OSS_SEQUENCER
|
|
|
|
#define SND_TIMER_GLOBAL_SYSTEM SNDRV_TIMER_GLOBAL_SYSTEM
|
|
|
|
#define SND_TIMER_GLOBAL_RTC SNDRV_TIMER_GLOBAL_RTC
|
|
|
|
#define SND_TIMER_FLG_SLAVE SNDRV_TIMER_FLG_SLAVE
|
|
|
|
#define SND_TIMER_PARBIT_FLAGS SNDRV_TIMER_PARBIT_FLAGS
|
|
|
|
#define SND_TIMER_PARBIT_TICKS SNDRV_TIMER_PARBIT_TICKS
|
|
|
|
#define SND_TIMER_PARBIT_QUEUE_SIZE SNDRV_TIMER_PARBIT_QUEUE_SIZE
|
|
|
|
#define SND_TIMER_PSFLG_AUTO SNDRV_TIMER_PSFLG_AUTO
|
|
|
|
|
|
|
|
typedef struct _snd_timer snd_timer_t;
|
|
|
|
|
1999-03-08 16:51:36 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
1999-06-02 00:40:30 +00:00
|
|
|
int snd_timer_open(snd_timer_t **handle);
|
|
|
|
int snd_timer_close(snd_timer_t *handle);
|
2000-09-24 09:57:26 +00:00
|
|
|
int snd_timer_poll_descriptor(snd_timer_t *handle);
|
2000-11-30 19:17:55 +00:00
|
|
|
int snd_timer_next_device(snd_timer_t *handle, snd_timer_id_t *tid);
|
1999-06-02 00:40:30 +00:00
|
|
|
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);
|
|
|
|
int snd_timer_params(snd_timer_t *handle, snd_timer_params_t *params);
|
|
|
|
int snd_timer_status(snd_timer_t *handle, snd_timer_status_t *status);
|
|
|
|
int snd_timer_start(snd_timer_t *handle);
|
|
|
|
int snd_timer_stop(snd_timer_t *handle);
|
|
|
|
int snd_timer_continue(snd_timer_t *handle);
|
|
|
|
ssize_t snd_timer_read(snd_timer_t *handle, void *buffer, size_t size);
|
1999-03-08 16:51:36 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|