summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-27 10:11:55 +0100
committerwm4 <wm4@nowhere>2014-11-27 10:11:55 +0100
commita98f88a12f70fd4950a69656235eea61d44b5105 (patch)
tree05d77f481a513052d3f8e0040b291c17e911d2b2 /audio
parentb5848028138ef6bc2687576b9636b5a2a9c72a6b (diff)
downloadmpv-a98f88a12f70fd4950a69656235eea61d44b5105.tar.bz2
mpv-a98f88a12f70fd4950a69656235eea61d44b5105.tar.xz
mixer: don't show softvol neutral marker on OSD if not using softvol
Also fix the comment on the softvol field.
Diffstat (limited to 'audio')
-rw-r--r--audio/mixer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/mixer.c b/audio/mixer.c
index e02388851c..ced2196215 100644
--- a/audio/mixer.c
+++ b/audio/mixer.c
@@ -36,7 +36,7 @@ struct mixer {
struct ao *ao;
struct af_stream *af;
// Static, dependent on ao/softvol settings
- bool softvol; // use AO (true) or af_volume (false)
+ bool softvol; // use AO (false) or af_volume (true)
bool ao_softvol; // AO has private or per-app volume
bool emulate_mute; // if true, emulate mute with volume=0
// Last known values (possibly out of sync with reality)
@@ -72,7 +72,7 @@ bool mixer_audio_initialized(struct mixer *mixer)
float mixer_getneutralvolume(struct mixer *mixer)
{
// gain == 1
- return 1.0 / mixer->opts->softvol_max * 100.0 * 100.0;
+ return mixer->softvol ? 1.0 / mixer->opts->softvol_max * 100.0 * 100.0 : 100;
}
static void checkvolume(struct mixer *mixer)