Commit 451d015c authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

fix test failures due to None value being passed

parent f8e5f631
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -352,12 +352,14 @@ def render_lfe_to_binaural(
    x: np.ndarray,
    fs: Optional[int] = 48000,
    lfe_index: Optional[list] = None,
    LFE_gain: Optional[float] = BINAURAL_LFE_GAIN,
    LFE_gain: Optional[float] = None,
) -> Tuple[np.ndarray, int]:
    """
    Extract LFE from the given input and render
    it binaurally, accounting for delay
    """
    if LFE_gain is None:
        LFE_gain = BINAURAL_LFE_GAIN

    lfe = x[:, lfe_index].copy()

+1 −1
Original line number Diff line number Diff line
@@ -577,7 +577,7 @@ def get_processing_chain(
                "out_fmt": post_fmt,
                "out_cutoff": tmp_lp_cutoff,
                "bin_dataset": post_cfg.get("bin_dataset"),
                "bin_lfe_gain": post_cfg.get("bin_lfe_gain"),
                "bin_lfe_gain": parse_gain(post_cfg.get("bin_lfe_gain")),
                "limit": post_cfg.get("limit", True),
                "trajectory": get_abs_path(post_cfg.get("trajectory", None)),
                "multiprocessing": cfg.multiprocessing,