Skip to content
Snippets Groups Projects
Commit 4d238946 authored by Thomas Guillem's avatar Thomas Guillem Committed by Steve Lhomme
Browse files

aout: also propose stereo mix-mode if the spatialaudio module is missing

If the content is not ambisonics.
parent 93f42387
No related branches found
No related tags found
1 merge request!2955aout: also propose stereo mix-mode if the spatialaudio module is missing
Pipeline #293309 passed with stages
in 26 minutes and 27 seconds
......@@ -577,10 +577,13 @@ static void aout_SetupMixModeChoices (audio_output_t *aout,
const bool has_spatialaudio = module_exists("spatialaudio");
aout_AddMixModeChoice(aout, AOUT_MIX_MODE_UNSET, _("Original"), fmt);
if (fmt->channel_type != AUDIO_CHANNEL_TYPE_AMBISONICS && has_spatialaudio)
/* Don't propose the mix option if we don't have the spatialaudio module
* and if the content is ambisonics */
if (fmt->channel_type != AUDIO_CHANNEL_TYPE_AMBISONICS || has_spatialaudio)
{
aout_AddMixModeChoice(aout, AOUT_MIX_MODE_UNSET, _("Original"), fmt);
aout_AddMixModeChoice(aout, AOUT_MIX_MODE_STEREO, _("Stereo"), NULL);
}
if (has_spatialaudio)
aout_AddMixModeChoice(aout, AOUT_MIX_MODE_BINAURAL, _("Binaural"), NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment