Commit d2ec3b08 authored by sbsarac's avatar sbsarac
Browse files

Fix errors related to path

parent 2e7aaa6c
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -1308,16 +1308,16 @@ eid-xor -fer -vbr -bs g192 -ep g192 bit ../scripts/dly_error_profiles/ep_5pct.g1
../IVAS_dec -render_config testv/rend_config_renderer.cfg BINAURAL_ROOM_REVERB 16 bit testv/ltv48_MC51.wav_MC51_512000_48-16_MC_Config_renderer.tst

// Multi-channel 5_1 at 512 kbps, 48kHz in 48kHz out, BINAURAL_ROOM_REVERB out custom acoustic environment with a sequence (CREND)
//../IVAS_cod -mc 5_1 512000 48 testv/ltv51MC48c.wav bit
//../IVAS_dec -render_config testv/rend_config_combined.cfg -aeid testv/aeid1.txt BINAURAL_ROOM_REVERB 48 bit testv/ltv51MC48c.wav_MC51_512000_48-48_MC_reverb_sequence.tst
../IVAS_cod -mc 5_1 512000 48 testv/ltv51MC48c.wav bit
../IVAS_dec -render_config testv/rend_config_combined.cfg -aeid testv/aeid1.txt BINAURAL_ROOM_REVERB 48 bit testv/ltv51MC48c.wav_MC51_512000_48-48_MC_reverb_sequence.tst

// Multi-channel 5_1 at 64 kbps, 48kHz in 48kHz out, BINAURAL_ROOM_REVERB out custom acoustic environment with a sequence (FastConv)
//../IVAS_cod -mc 5_1 64000 48 testv/ltv51MC48c.wav bit
//../IVAS_dec -render_config testv/rend_config_combined.cfg -aeid testv/aeid2.txt BINAURAL_ROOM_REVERB 48 bit testv/ltv51MC48c.wav_MC51_64000_48-48_MC_reverb_sequence.tst
../IVAS_cod -mc 5_1 64000 48 testv/ltv51MC48c.wav bit
../IVAS_dec -render_config testv/rend_config_combined.cfg -aeid testv/aeid2.txt BINAURAL_ROOM_REVERB 48 bit testv/ltv51MC48c.wav_MC51_64000_48-48_MC_reverb_sequence.tst

// Multi-channel 5_1 at 32 kbps, 48kHz in 48kHz out, BINAURAL_ROOM_REVERB out custom acoustic environment with a sequence (ParamBin)
//../IVAS_cod -mc 5_1 32000 48 testv/ltv51MC48c.wav bit
//../IVAS_dec -render_config testv/rend_config_combined.cfg -aeid testv/aeid3.txt BINAURAL_ROOM_REVERB 48 bit testv/ltv51MC48c.wav_MC51_32000_48-48_MC_reverb_sequence.tst
../IVAS_cod -mc 5_1 32000 48 testv/ltv51MC48c.wav bit
../IVAS_dec -render_config testv/rend_config_combined.cfg -aeid testv/aeid3.txt BINAURAL_ROOM_REVERB 48 bit testv/ltv51MC48c.wav_MC51_32000_48-48_MC_reverb_sequence.tst

// Multi-channel 5_1 at 32 kbps, 48kHz in, 48kHz out, BINAURAL_ROOM_REVERB out Config hospital_patientroom
../IVAS_cod -mc 5_1 32000 48 testv/ltv48_MC51.wav bit
+9 −4
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@
   the United Nations Convention on Contracts on the International Sales of Goods.
"""

from pathlib import Path
import pytest

from .constants import (
@@ -138,6 +139,9 @@ def test_dynamic_acoustic_environment(
    rend_config_path = TEST_VECTOR_DIR.joinpath(f"rend_config_combined.cfg")
    rend_config_path.with_stem(f"rend_config")

    aeid_path = Path(aeid)
    aeid_path.with_stem(aeid)
    
    run_renderer(
        record_property,
        test_info,
@@ -148,7 +152,7 @@ def test_dynamic_acoustic_environment(
        get_mld=get_mld,
        mld_lim=get_mld_lim,
        config_file=rend_config_path,
        aeid=aeid,        
        aeid=aeid_path,        
    )

@pytest.mark.create_ref
@@ -156,12 +160,13 @@ def test_dynamic_acoustic_environment(
@pytest.mark.parametrize("in_fmt", INPUT_FORMATS_AMBI)
@pytest.mark.parametrize("frame_size", FRAMING_TO_TEST)
def test_dynamic_acoustic_environment_file(
    record_property, test_info, in_fmt, out_fmt, frame_size, get_mld, get_mld_lim, aeid
    record_property, test_info, in_fmt, out_fmt, frame_size, get_mld, get_mld_lim
):
    rend_config_path = TESTV_DIR.joinpath(f"rend_config_combined.cfg")
    rend_config_path = TEST_VECTOR_DIR.joinpath(f"rend_config_combined.cfg")
    rend_config_path.with_stem(f"rend_config")

    aeid = TESTV_DIR.joinpath(f"aeid1.txt")
    aeid = TEST_VECTOR_DIR.joinpath(f"aeid1.txt")
    aeid.with_stem(f"aeid1.txt")
    
    run_renderer(
        record_property,
+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,7 @@ def run_renderer(
        framing_name = ""

    if aeid is not None:
        aeid_name = f"_{aeid}"
        aeid_name = f"_{aeid.stem}"
    else:
        aeid_name = ""