Commit cdeedc9b authored by norvell's avatar norvell
Browse files

Fix for PEAQ resampling

parent ee36749d
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -67,14 +67,14 @@ def cmp_pcm(

    if fs1 != fs2:
        if peaq_binaural:
            fs = max(fs1,fs2)
            fs = 48000
            s1 = np.clip(
                pyaudio3dtools.audioarray.resample(s1.astype(float), fs, 48000),
                pyaudio3dtools.audioarray.resample(s1.astype(float), fs1, fs),
                -32768,
                32767,
            ).astype(np.int16)
            s2 = np.clip(
                pyaudio3dtools.audioarray.resample(s2.astype(float), fs, 48000),
                pyaudio3dtools.audioarray.resample(s2.astype(float), fs2, fs),
                -32768,
                32767,
            ).astype(np.int16)