summaryrefslogtreecommitdiffstats
path: root/core/cfg-mplayer.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-15 19:22:01 +0100
committerwm4 <wm4@nowhere>2012-11-16 21:21:15 +0100
commit25a098fe78ad2aee0ad7e18f8d4326e5cd29aeb1 (patch)
treeeb7630929380192859eeae40d1671910b43bedfb /core/cfg-mplayer.h
parent1197e13c2f86ea0c521c206fa3412d50587376da (diff)
downloadmpv-25a098fe78ad2aee0ad7e18f8d4326e5cd29aeb1.tar.bz2
mpv-25a098fe78ad2aee0ad7e18f8d4326e5cd29aeb1.tar.xz
options: add --mute for setting initial audio mute status
Similar to --volume. Takes this as opportunity to move the variable corresponding to --volume into MPOpts.
Diffstat (limited to 'core/cfg-mplayer.h')
-rw-r--r--core/cfg-mplayer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h
index 26649b42f6..c45d4b42c7 100644
--- a/core/cfg-mplayer.h
+++ b/core/cfg-mplayer.h
@@ -570,7 +570,11 @@ const m_option_t mplayer_opts[]={
{"auto", SOFTVOL_AUTO})),
OPT_FLOATRANGE("softvol-max", softvol_max, 0, 10, 10000),
{"volstep", &volstep, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
- {"volume", &start_volume, CONF_TYPE_FLOAT, CONF_RANGE, -1, 10000, NULL},
+ OPT_FLOATRANGE("volume", mixer_init_volume, 0, -1, 10000),
+ OPT_CHOICE("mute", mixer_init_mute, 0,
+ ({"auto", -1},
+ {"no", 0},
+ {"yes", 1})),
OPT_MAKE_FLAGS("gapless-audio", gapless_audio, 0),
// override audio buffer size (used only by -ao oss/win32, obsolete)
OPT_INT("abs", ao_buffersize, 0),