1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef AUDIO_ALSA_H #define AUDIO_ALSA_H #include <alsa/asoundlib.h> #include "local-def.h" typedef struct dev_ctx dev_ctx_T; struct dev_ctx { char *name; snd_pcm_t *dev; snd_pcm_hw_params_t *params; }; static struct dev_ctx **dev_ctx = NULL; #endif /* AUDIO_ALSA_H */