diff options
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/types.h b/src/types.h index b59c933..c23d4b5 100644 --- a/src/types.h +++ b/src/types.h @@ -30,6 +30,7 @@ #include <stdio.h> #include <stdint.h> #include <SDL.h> +#include <alsa/asoundlib.h> typedef enum { ACCEL_UNKNOWN, @@ -60,12 +61,16 @@ typedef struct { typedef struct { - long moo_len; - long moo_pos; - Sint16 *moo_buf; - int aplay_fallback; + long moo_len; + long moo_pos; + Sint16 *moo_buf; - unsigned int mootex; + int finished; + snd_pcm_t *alsa_handle; + snd_pcm_uframes_t alsa_frames; + GThread *alsa_thread; + + unsigned int mootex; } AudioContext; |