summaryrefslogtreecommitdiffstats
path: root/mixer.h
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2011-12-22 07:19:43 +0100
committerwm4 <wm4@mplayer2.org>2012-01-07 16:43:35 +0100
commit7e3a4578bd99313541c6da4060bcc0bd12fadb46 (patch)
treedcdead07a91c34664374f858bdcfa8105c6c517c /mixer.h
parent685fbf25fecd13524b083f3b05264806d054f21d (diff)
downloadmpv-7e3a4578bd99313541c6da4060bcc0bd12fadb46.tar.bz2
mpv-7e3a4578bd99313541c6da4060bcc0bd12fadb46.tar.xz
mixer: keep balance setting
Similarly to the last commit, restore the balance setting when switching to a new file. Unlike the volume setting, balance is always implemented as filter, so this affects usage without --softvol too.
Diffstat (limited to 'mixer.h')
-rw-r--r--mixer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mixer.h b/mixer.h
index 473933ecbe..1e45ac56b4 100644
--- a/mixer.h
+++ b/mixer.h
@@ -35,6 +35,7 @@ typedef struct mixer_s {
float last_l, last_r;
float softvol_l, softvol_r;
int restore_softvol;
+ float balance;
} mixer_t;
void mixer_reinit(mixer_t *mixer);