Commit c4d4e374 authored by Thomas Guillem's avatar Thomas Guillem

aout: select headphones stereo-mode if aout is using headphones

Select it only if it's needed (ambisonics or channels count higher than 2) and
if the user didn't forced it.
parent 0e644ebb
......@@ -449,6 +449,15 @@ static void aout_PrepareStereoMode (audio_output_t *aout,
txt.psz_string = _("Headphones");
var_Change (aout, "stereo-mode", VLC_VAR_ADDCHOICE, &val, &txt);
if (i_forced_stereo_mode == AOUT_VAR_CHAN_UNSET
&& aout->current_sink_info.headphones)
i_forced_stereo_mode = AOUT_VAR_CHAN_HEADPHONES;
default_val.i_int = val.i_int;
var_Change (aout, "stereo-mode", VLC_VAR_SETVALUE, &default_val,
/* The user may have selected a different channels configuration. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment