Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
http-svc: handle alises more efficiently
[src/app-framework-binder.git]
/
plugins
/
audio
/
audio-alsa.h
diff --git
a/plugins/audio/audio-alsa.h
b/plugins/audio/audio-alsa.h
index
776ac81
..
9b9ee21
100644
(file)
--- a/
plugins/audio/audio-alsa.h
+++ b/
plugins/audio/audio-alsa.h
@@
-19,24
+19,30
@@
#ifndef AUDIO_ALSA_H
#define AUDIO_ALSA_H
#ifndef AUDIO_ALSA_H
#define AUDIO_ALSA_H
+#include <pthread.h>
#include <alsa/asoundlib.h>
#include "local-def.h"
#include <alsa/asoundlib.h>
#include "local-def.h"
-typedef struct
adev_ctx adev_ctx
_T;
+typedef struct
dev_ctx_alsa dev_ctx_alsa
_T;
-struct
adev_ctx
{
+struct
dev_ctx_alsa
{
char *name;
snd_pcm_t *dev;
snd_pcm_hw_params_t *params;
snd_mixer_elem_t *mixer_elm;
char *name;
snd_pcm_t *dev;
snd_pcm_hw_params_t *params;
snd_mixer_elem_t *mixer_elm;
+ snd_mixer_elem_t *mixer_elm_m;
long vol_max;
long vol;
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* _alsa_play_thread_fn (void *);
+PUBLIC int _alsa_get_volume (unsigned int, unsigned int);
PUBLIC unsigned char _alsa_get_mute (unsigned int);
PUBLIC unsigned char _alsa_get_mute (unsigned int);
-static struct
adev_ctx **adev_ctx
= NULL;
+static struct
dev_ctx_alsa **dev_ctx_a
= NULL;
#endif /* AUDIO_ALSA_H */
#endif /* AUDIO_ALSA_H */