summaryrefslogtreecommitdiffstats
path: root/mixer.h
diff options
context:
space:
mode:
Diffstat (limited to 'mixer.h')
-rw-r--r--mixer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/mixer.h b/mixer.h
index efeb62856f..3ba44ad0df 100644
--- a/mixer.h
+++ b/mixer.h
@@ -24,11 +24,17 @@
#include "libaf/af.h"
#include "libao2/audio_out.h"
+enum {
+ SOFTVOL_NO = 0,
+ SOFTVOL_YES = 1,
+ SOFTVOL_AUTO = 2,
+};
+
typedef struct mixer {
struct ao *ao;
af_stream_t *afilter;
int volstep;
- bool softvol;
+ int softvol;
float softvol_max;
bool muted;
bool muted_by_us;