summaryrefslogtreecommitdiffstats
path: root/mixer.h
diff options
context:
space:
mode:
Diffstat (limited to 'mixer.h')
-rw-r--r--mixer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mixer.h b/mixer.h
index 0c6d6a91db..fc5b6c1e71 100644
--- a/mixer.h
+++ b/mixer.h
@@ -32,8 +32,12 @@ typedef struct mixer {
float softvol_max;
bool muted;
float vol_l, vol_r;
+ /* Contains ao driver name or "softvol" if volume is not persistent
+ * and needs to be restored after the driver is reinitialized. */
+ const char *restore_volume;
} mixer_t;
+void mixer_reinit(struct mixer *mixer, struct ao *ao);
void mixer_getvolume(mixer_t *mixer, float *l, float *r);
void mixer_setvolume(mixer_t *mixer, float l, float r);
void mixer_incvolume(mixer_t *mixer);