Commit 57e6fea8 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

remove condition around rendering LFE to binaural - if not supplied the...

remove condition around rendering LFE to binaural - if not supplied the default gain value is used and LFE is always rendered
parent a0c18bdd
Loading
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -128,7 +128,6 @@ def render_cba_to_binaural(
    IR, _, latency_smp = load_ir(cba.name, bin.name, bin_dataset)

    # render LFE
    if bin_lfe_gain is not None:
    bin_lfe, lfe_delay_ns = render_lfe_to_binaural(
        cba.audio, cba.fs, cba.lfe_index, bin_lfe_gain
    )
@@ -139,7 +138,6 @@ def render_cba_to_binaural(
    bin.audio = delay(bin.audio, bin.fs, -latency_smp, samples=True)

    # add LFE and rest
    if bin_lfe_gain is not None:
    bin.audio += bin_lfe

    bin.audio = resample_itu(bin, old_fs)