summaryrefslogtreecommitdiffstats
path: root/plugins/audio/audio-alsa.h
diff options
context:
space:
mode:
authorManuel Bachmann <manuel.bachmann@iot.bzh>2016-01-11 02:43:19 +0100
committerManuel Bachmann <manuel.bachmann@iot.bzh>2016-01-11 02:43:19 +0100
commitf16675ed24fd331903b8d6ef5d8ac07f6acbd6b0 (patch)
tree2852205153bdd62560f05eae05b899905942b376 /plugins/audio/audio-alsa.h
parent14c6ab749e9ccfdde8d191c10e2d0426da53df1f (diff)
Audio Plugin: add PulseAudio support
If PulseAudio development libraries are present, Audio plugin will now support it. It may still fall back to ALSA if a PulseAudio server is not found at runtime. PulseAudio backend supports multiple clients using one audio adapter. (+ various fixes and style improvements) Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Diffstat (limited to 'plugins/audio/audio-alsa.h')
-rw-r--r--plugins/audio/audio-alsa.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/audio/audio-alsa.h b/plugins/audio/audio-alsa.h
index 25292ad1..9b9ee21c 100644
--- a/plugins/audio/audio-alsa.h
+++ b/plugins/audio/audio-alsa.h
@@ -24,9 +24,9 @@
#include "local-def.h"
-typedef struct dev_ctx dev_ctx_T;
+typedef struct dev_ctx_alsa dev_ctx_alsa_T;
-struct dev_ctx {
+struct dev_ctx_alsa {
char *name;
snd_pcm_t *dev;
snd_pcm_hw_params_t *params;
@@ -39,10 +39,10 @@ struct dev_ctx {
unsigned char thr_finished;
};
-STATIC void* _play_thread_fn (void *);
+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 **dev_ctx = NULL;
+static struct dev_ctx_alsa **dev_ctx_a = NULL;
#endif /* AUDIO_ALSA_H */