Commit e02baf38 authored by Anika Treffehn's avatar Anika Treffehn
Browse files

fixed sba to sba rendering

parent c1d5c8b7
Loading
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -167,17 +167,20 @@ def render_sba_to_sba(
    """

    if sba_out.ambi_order > sba_in.ambi_order:
        # order increases
        sba_out.audio = np.pad(
            sba_in.audio, [[0, 0], [0, sba_out.num_channels - sba_in.num_channels]]
        )
    elif sba_out.ambi_order < sba_in.ambi_order:
        # order decreases
        sba_out.audio = sba_in.audio[:, : sba_out.num_channels]
    else:
        # order stays the same
        sba_out.audio = sba_in.audio

    if sba_out.is_planar:
        sba_out.audio = sba_in.audio
        # set vertical channels to zero if output is planar
        zero_vert_channels(sba_out)
    elif sba_in.is_planar:
        sba_out.audio = sba_in.audio


def rotate_sba(