summaryrefslogtreecommitdiffstats
path: root/plugins/audio/audio-alsa.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-04-05 19:32:47 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-04-05 19:32:47 +0200
commitfb230eee946673ed5ebe9659d623c2a06d0a80ce (patch)
tree1ec5034c1f97e8dd4812c1164fa984ed2d43bc48 /plugins/audio/audio-alsa.h
parent87d2ff17b84459e785c7820563bb0172849810c4 (diff)
parent1eea40b826a760f5e15c859744b290b680cda8ab (diff)
Merge branch 'master' of github.com:iotbzh/afb-daemon
Diffstat (limited to 'plugins/audio/audio-alsa.h')
-rw-r--r--plugins/audio/audio-alsa.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/audio/audio-alsa.h b/plugins/audio/audio-alsa.h
index 9b9ee21c..5ac8ea49 100644
--- a/plugins/audio/audio-alsa.h
+++ b/plugins/audio/audio-alsa.h
@@ -22,6 +22,7 @@
#include <pthread.h>
#include <alsa/asoundlib.h>
+#include "audio-api.h"
#include "local-def.h"
typedef struct dev_ctx_alsa dev_ctx_alsa_T;
@@ -39,9 +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 *);
-PUBLIC int _alsa_get_volume (unsigned int, unsigned int);
-PUBLIC unsigned char _alsa_get_mute (unsigned int);
static struct dev_ctx_alsa **dev_ctx_a = NULL;