Loading scripts/binauralRenderer_interface/generate_ivas_binauralizer_tables_from_sofa.m +21 −29 Original line number Diff line number Diff line Loading @@ -165,9 +165,6 @@ fclose(fp); if writeBinaryOutput == true td_binary_file = ['td_' erase(hrir_file_name,'.sofa') '_model_v003']; % sampleRates = ['48' ; '32' ; '16' ]; % for ind = 1 : length(sampleRates) % command = ['.' filesep() 'Table_Format_Converter' filesep() 'tables_format_converter' ' -' sampleRates(ind,:) ' ']; command = ['.' filesep() 'Table_Format_Converter' filesep() 'tables_format_converter']; command = [command ... ' -output_file_path ' binary_path ... Loading @@ -189,14 +186,12 @@ if writeBinaryOutput == true error(cmdout) return end % end end %% Foa all previously generated binary files, convert to binary files for IVAS decoder or renderer. One per sample rates and per renderers if writeBinaryOutput == true && writeEachRendererBinaryOutput == true td_binary_file = ['td_' erase(hrir_file_name,'.sofa') '_model_v003']; % sampleRates = ['48' ; '32' ; '16' ]; command = ['.' filesep() 'Table_Format_Converter' filesep() 'tables_format_converter']; commandRendererList = [... " -input_mixerconv_hrir_file_path " binary_path ... Loading @@ -210,12 +205,10 @@ if writeBinaryOutput == true && writeEachRendererBinaryOutput == true " -input_fastconv_file_path " binary_path ... " -input_fastconv_file_name " fastconv_bin_file ... ]; % for ind = 1 : length(sampleRates) for indList = 3 : 4 : length(commandRendererList) pos = strfind(commandRendererList{indList},"_"); pos(2) = strfind(commandRendererList{indList},"_file_name"); output_bin_name_list = [output_bin_name commandRendererList{indList}(pos(1):pos(2)-1) ]; % cmdl = [command ' -output_file_path ' binary_path ' -output_file_name ' output_bin_name_list ' -' sampleRates(ind,:) ' ']; cmdl = [command ' -output_file_path ' binary_path ' -output_file_name ' output_bin_name_list]; cmdl2 = [cmdl ... commandRendererList{indList - 2} ... Loading @@ -229,5 +222,4 @@ if writeBinaryOutput == true && writeEachRendererBinaryOutput == true return end end % end end No newline at end of file Loading
scripts/binauralRenderer_interface/generate_ivas_binauralizer_tables_from_sofa.m +21 −29 Original line number Diff line number Diff line Loading @@ -165,9 +165,6 @@ fclose(fp); if writeBinaryOutput == true td_binary_file = ['td_' erase(hrir_file_name,'.sofa') '_model_v003']; % sampleRates = ['48' ; '32' ; '16' ]; % for ind = 1 : length(sampleRates) % command = ['.' filesep() 'Table_Format_Converter' filesep() 'tables_format_converter' ' -' sampleRates(ind,:) ' ']; command = ['.' filesep() 'Table_Format_Converter' filesep() 'tables_format_converter']; command = [command ... ' -output_file_path ' binary_path ... Loading @@ -189,14 +186,12 @@ if writeBinaryOutput == true error(cmdout) return end % end end %% Foa all previously generated binary files, convert to binary files for IVAS decoder or renderer. One per sample rates and per renderers if writeBinaryOutput == true && writeEachRendererBinaryOutput == true td_binary_file = ['td_' erase(hrir_file_name,'.sofa') '_model_v003']; % sampleRates = ['48' ; '32' ; '16' ]; command = ['.' filesep() 'Table_Format_Converter' filesep() 'tables_format_converter']; commandRendererList = [... " -input_mixerconv_hrir_file_path " binary_path ... Loading @@ -210,12 +205,10 @@ if writeBinaryOutput == true && writeEachRendererBinaryOutput == true " -input_fastconv_file_path " binary_path ... " -input_fastconv_file_name " fastconv_bin_file ... ]; % for ind = 1 : length(sampleRates) for indList = 3 : 4 : length(commandRendererList) pos = strfind(commandRendererList{indList},"_"); pos(2) = strfind(commandRendererList{indList},"_file_name"); output_bin_name_list = [output_bin_name commandRendererList{indList}(pos(1):pos(2)-1) ]; % cmdl = [command ' -output_file_path ' binary_path ' -output_file_name ' output_bin_name_list ' -' sampleRates(ind,:) ' ']; cmdl = [command ' -output_file_path ' binary_path ' -output_file_name ' output_bin_name_list]; cmdl2 = [cmdl ... commandRendererList{indList - 2} ... Loading @@ -229,5 +222,4 @@ if writeBinaryOutput == true && writeEachRendererBinaryOutput == true return end end % end end No newline at end of file