Commit b75f3fba authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

fix downmix in pyaudio3dtools as well

parent 1af2e446
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -337,7 +337,10 @@ def convert_mc(
) -> np.ndarray:
    """Convert a multichannel signal to the requested output format"""
    # MC -> LS
    if out_spfmt.isloudspeaker:
    if in_spfmt.name == "STEREO" and out_spfmt.name == "MONO":
        MC2LS = np.vstack([[0.5], [0.5]])
        return in_sig @ MC2LS
    elif out_spfmt.isloudspeaker:
        try:
            MC2LS = IVAS_MC_CONVERSION[in_spfmt.name][out_spfmt.name]
        except KeyError: