summaryrefslogtreecommitdiffstats
path: root/mixer.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2012-04-09 21:06:10 +0300
committerUoti Urpala <uau@mplayer2.org>2012-04-11 03:50:33 +0300
commite29cb8f323031b32369bc2104ea1fd4422dd2945 (patch)
tree5fc5905fa066fb5abfab0d712589da711ffd0490 /mixer.h
parent87dad2a4704b2fb0f983d5cb665a065437288d35 (diff)
downloadmpv-e29cb8f323031b32369bc2104ea1fd4422dd2945.tar.bz2
mpv-e29cb8f323031b32369bc2104ea1fd4422dd2945.tar.xz
audio: restore balance setting after reinit
Restore the audio balance setting when the audio chain is reinitialized (also after switching to another file). Also add a note about the balance code being seriously buggy.
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 fc5b6c1e71..e626237539 100644
--- a/mixer.h
+++ b/mixer.h
@@ -35,6 +35,7 @@ typedef struct mixer {
/* 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;
+ float balance;
} mixer_t;
void mixer_reinit(struct mixer *mixer, struct ao *ao);