Skip to content

[CI] Fix MLD calculation in audioarray.compare, called from cmp_pcm.py.

norvell requested to merge ci/fix-mld into main

Reason why this change is needed

  • The MLD comparison result is zero if the sampling rate is not 48 kHz.

Description of the change

  • The MLD tool operates on 48 kHz. For other sampling rates, scipy.signal.resample is used to convert to 48 kHz. However, this function does not work for int16 input and the output vectors are zero. The MLD tool is then run comparing to zero vectors and the result is MLD=0.

Affected operating points

  • Affects BASOP CI, but not used in PC repo.

Merge request reports

Loading