summaryrefslogtreecommitdiffstats
path: root/plugins/audio/audio-api.h
diff options
context:
space:
mode:
authorManuel Bachmann <manuel.bachmann@iot.bzh>2015-12-22 15:17:37 +0100
committerManuel Bachmann <manuel.bachmann@iot.bzh>2015-12-22 15:17:37 +0100
commit6f2913ab5e366e8f3df12a7df11a85b7b6574e2c (patch)
tree60bb00a0b8fe0dadefbdbeb9c01445b5b645d7f3 /plugins/audio/audio-api.h
parent1b238baa74d36f144581deee5f3a1834d1d445bb (diff)
Audio API: manage multiple-channel volume
You can now set the volume for multiple channels independantly by using the "value=<1>,<2>..." syntax. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Diffstat (limited to 'plugins/audio/audio-api.h')
-rw-r--r--plugins/audio/audio-api.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/audio/audio-api.h b/plugins/audio/audio-api.h
index 12f70a8e..b6669ec9 100644
--- a/plugins/audio/audio-api.h
+++ b/plugins/audio/audio-api.h
@@ -36,10 +36,10 @@ typedef struct {
typedef struct {
audioDevT *radio; /* pointer to client audio card */
int idx; /* audio card index within global array */
- unsigned int volume; /* audio volume : 0-100 */
+ int volume[8]; /* audio volume (8 channels) : 0-100 */
unsigned int channels; /* audio channels : 1(mono)/2(stereo)... */
unsigned char mute; /* audio muted : 0(false)/1(true) */
- unsigned char is_playing; /* audio is playing: 0(false)/1(true) */
+ unsigned char is_playing; /* audio is playing: 0(false)/1(true) */
} audioCtxHandleT;