From 25a098fe78ad2aee0ad7e18f8d4326e5cd29aeb1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 15 Nov 2012 19:22:01 +0100 Subject: 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. --- core/cfg-mplayer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/cfg-mplayer.h') 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), -- cgit v1.2.3