diff options
author | Manuel Bachmann <manuel.bachmann@iot.bzh> | 2016-05-11 08:41:50 +0200 |
---|---|---|
committer | Manuel Bachmann <manuel.bachmann@iot.bzh> | 2016-05-11 08:41:50 +0200 |
commit | a4c89089944e8b101ec39ce19dacf400c16aeabf (patch) | |
tree | eb706da8c51169290042c2503cd517f245dbc5b8 /plugins/audio/audio-alsa.h | |
parent | 1e8edd92a04281bddc86fff3db5b407943504aed (diff) |
Update Audio plugin, re-enable ALSA/Pulse linking
Audio plugin is now ported to new API and builds again.
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Diffstat (limited to 'plugins/audio/audio-alsa.h')
-rw-r--r-- | plugins/audio/audio-alsa.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/audio/audio-alsa.h b/plugins/audio/audio-alsa.h index 216717b1..4a384605 100644 --- a/plugins/audio/audio-alsa.h +++ b/plugins/audio/audio-alsa.h @@ -22,7 +22,8 @@ #include <alsa/asoundlib.h> #include "audio-api.h" -#include "local-def.h" + +#define AUDIO_BUFFER "/tmp/audio_buf" typedef struct dev_ctx_alsa dev_ctx_alsa_T; @@ -39,18 +40,17 @@ struct dev_ctx_alsa { unsigned char thr_finished; }; -PUBLIC unsigned char _alsa_init (const char *, audioCtxHandleT *); -PUBLIC void _alsa_free (const char *); -PUBLIC void _alsa_play (int); -PUBLIC void _alsa_stop (int); -PUBLIC unsigned int _alsa_get_volume (int, unsigned int); -PUBLIC void _alsa_set_volume (int, unsigned int, unsigned int); -PUBLIC void _alsa_set_volume_all (int, unsigned int); -PUBLIC unsigned char _alsa_get_mute (int); -PUBLIC void _alsa_set_mute (int, unsigned char); -PUBLIC void _alsa_set_channels (int, unsigned int); -STATIC void* _alsa_play_thread_fn (void *); - -static struct dev_ctx_alsa **dev_ctx_a = NULL; +unsigned char _alsa_init (const char *, audioCtxHandleT *); +void _alsa_free (const char *); +void _alsa_play (int); +void _alsa_stop (int); +unsigned int _alsa_get_volume (int, unsigned int); +void _alsa_set_volume (int, unsigned int, unsigned int); +void _alsa_set_volume_all (int, unsigned int); +unsigned char _alsa_get_mute (int); +void _alsa_set_mute (int, unsigned char); +void _alsa_set_channels (int, unsigned int); + +void* _alsa_play_thread_fn (void *); #endif /* AUDIO_ALSA_H */ |