Commit eaf73cb7 authored by Thomas Guillem's avatar Thomas Guillem

aout: set maximum number of channels for ambisonics

parent 81e768f8
......@@ -493,6 +493,14 @@ int aout_OutputNew (audio_output_t *aout, audio_sample_format_t *restrict fmt,
if (fmt->channel_type == AUDIO_CHANNEL_TYPE_AMBISONICS)
/* Set the maximum of channels to render ambisonics contents. The
* aout module will still be free to select less channels in order
* to respect the sink setup. */
fmt->i_physical_channels = AOUT_CHANS_7_1;
/* Try to stay in integer domain if possible for no/slow FPU. */
fmt->i_format = (fmt->i_bitspersample > 16) ? VLC_CODEC_FL32
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