Use new waveform matching option on ambisonics

Should reduce phase-related problems at low bitrate
parent cece1fd6
......@@ -475,6 +475,8 @@ static int opus_multistream_encoder_init_impl(
if(ret!=OPUS_OK)return ret;
if (i==st->lfe_stream)
opus_encoder_ctl((OpusEncoder*)ptr, OPUS_SET_LFE(1));
if (mapping_type == MAPPING_TYPE_AMBISONICS)
opus_encoder_ctl((OpusEncoder*)ptr, OPUS_SET_WAVEFORM_MATCHING(1));
ptr += align(coupled_size);
}
for (;i<st->layout.nb_streams;i++)
......@@ -482,6 +484,8 @@ static int opus_multistream_encoder_init_impl(
ret = opus_encoder_init((OpusEncoder*)ptr, Fs, 1, application);
if (i==st->lfe_stream)
opus_encoder_ctl((OpusEncoder*)ptr, OPUS_SET_LFE(1));
if (mapping_type == MAPPING_TYPE_AMBISONICS)
opus_encoder_ctl((OpusEncoder*)ptr, OPUS_SET_WAVEFORM_MATCHING(1));
if(ret!=OPUS_OK)return ret;
ptr += align(mono_size);
}
......
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