mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
added full async interface to timer API
- added snd_async_add_timer_handler and snd_async_handler_get_timer functions - added async command to test/timer.c
This commit is contained in:
parent
a022bc1fbc
commit
8ec3e4ea6c
7 changed files with 99 additions and 3 deletions
|
|
@ -129,13 +129,15 @@ typedef struct sndrv_seq_event snd_seq_event_t;
|
|||
struct _snd_async_handler {
|
||||
enum {
|
||||
SND_ASYNC_HANDLER_GENERIC,
|
||||
SND_ASYNC_HANDLER_PCM,
|
||||
SND_ASYNC_HANDLER_CTL,
|
||||
SND_ASYNC_HANDLER_PCM,
|
||||
SND_ASYNC_HANDLER_TIMER,
|
||||
} type;
|
||||
int fd;
|
||||
union {
|
||||
snd_pcm_t *pcm;
|
||||
snd_ctl_t *ctl;
|
||||
snd_pcm_t *pcm;
|
||||
snd_timer_t *timer;
|
||||
} u;
|
||||
snd_async_callback_t callback;
|
||||
void *private_data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue