Commit 91bcbef8 authored by emerit's avatar emerit
Browse files

bug fix and generate BE rom files with main

parent 771e66d1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -71,6 +71,13 @@ set(SOURCE_FILES_H
    ${IVAS_TRUNK_REND_PATH}/ivas_rom_rend.h
)

# require to be bit exact with main branch
if(MSVC)
    add_compile_options("/fp:fast")
else()
    add_compile_options("-ffast-math" "-fno-finite-math-only" "-fsigned-zeros" "-fno-associative-math")
endif()

add_library(${PROJECT_NAME}_lib STATIC ${SOURCE_FILES_C} ${SOURCE_FILES_H})

add_executable(${PROJECT_NAME} generate_crend_ivas_tables_from_sofa.c)
+3 −0
Original line number Diff line number Diff line
@@ -109,6 +109,9 @@ end
%% Generate C-code tables for RENDERER_BINAURAL_FASTCONV_ROOM (SD)
disp('Processing BRIRs (SD) for FastConv renderer...');
FastConv_SD_BRIR_float = generate_BRIR_CLDFB_FASTCONV(brir_file);
if generateCustomBinaryFile == false
    FastConv_SD_BRIR_float.rev_param.rt60 = [0.420013, 0.206696, 0.203613, 0.207458, 0.217255, 0.236176, 0.230164, 0.228912, 0.228210, 0.219788, 0.225983, 0.220184, 0.222015, 0.223114, 0.223572, 0.227478, 0.227905, 0.223450, 0.219910, 0.218597, 0.220428, 0.218262, 0.213257, 0.210327, 0.207428, 0.198761, 0.196259, 0.194916, 0.190338, 0.184509, 0.180328, 0.176178, 0.176514, 0.177582, 0.183594, 0.195923, 0.203247, 0.208405, 0.214661, 0.220001, 0.222931, 0.230408, 0.233917, 0.233643, 0.236328, 0.237427, 0.241638, 0.241119, 0.238861, 0.242371, 0.247253, 0.245941, 0.248566, 0.245392, 0.243958, 0.244110, 0.239014, 0.241791, 0.234833, 0.253052];
end

%% compute scaling factor and set floating point precision to int16_t

+1 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ else
    error('Renderer type could not be matched to IVAS enum values!');
end

%ivas_cnst_path = fullfile(ivas_path, 'lib_com/ivas_cnst.h'); % must be replaced if this file is moved
c = fileread(hrtf_file_reader_path);

% regex for BINAURAL_INPUT_AUDIO_CONFIG