X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=plugins%2Faudio%2Faudio-alsa.h;h=85545d579ef4a7a1f9b3ced5b1ee4f0d287ebf4b;hb=39a0ef5d1609e01f71039f9095c14cf6f3ca1a93;hp=9a4b0b58dd621db109c22815be2ad6470b9394dc;hpb=915d25a0c2fcff8a8bb189963f490e0894d05733;p=src%2Fapp-framework-binder.git diff --git a/plugins/audio/audio-alsa.h b/plugins/audio/audio-alsa.h index 9a4b0b58..85545d57 100644 --- a/plugins/audio/audio-alsa.h +++ b/plugins/audio/audio-alsa.h @@ -19,6 +19,7 @@ #ifndef AUDIO_ALSA_H #define AUDIO_ALSA_H +#include #include #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;