diff options
author | Manuel Bachmann <manuel.bachmann@iot.bzh> | 2015-12-22 15:17:37 +0100 |
---|---|---|
committer | Manuel Bachmann <manuel.bachmann@iot.bzh> | 2015-12-22 15:17:37 +0100 |
commit | 6f2913ab5e366e8f3df12a7df11a85b7b6574e2c (patch) | |
tree | 60bb00a0b8fe0dadefbdbeb9c01445b5b645d7f3 /plugins/audio/audio-api.h | |
parent | 1b238baa74d36f144581deee5f3a1834d1d445bb (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.h | 4 |
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; |