Merge origin/master
[src/app-framework-binder.git] / plugins / audio / audio-alsa.h
index 9a4b0b5..85545d5 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef AUDIO_ALSA_H
 #define AUDIO_ALSA_H
 
+#include <pthread.h>
 #include <alsa/asoundlib.h>
 
 #include "local-def.h"
@@ -32,9 +33,13 @@ struct dev_ctx {
   snd_mixer_elem_t *mixer_elm;
   long vol_max;
   long vol;
+  pthread_t thr;
+  unsigned char thr_should_run;
+  unsigned char thr_finished;
 };
 
-PUBLIC unsigned int _alsa_get_volume (unsigned int);
+STATIC void* _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;