Loading scripts/binauralRenderer_interface/fastconv/get_ivas_binary_header.m +2 −3 Original line number Diff line number Diff line Loading @@ -47,11 +47,10 @@ header.chunksize = 0; %% parse IVAS enum % read the file hrtf_file_reader_path = fullfile(ivas_path, 'lib_util/hrtf_file_reader.h'); % must be replaced if this file is moved 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 RENDERER_TYPE rt_expr = '^\s+(HRTF_READER_RENDERER\w+)'; rt_expr = '^\s+(RENDERER\w+)'; rt_tok = regexp(c, rt_expr, 'tokens', 'dotexceptnewline', 'lineanchors'); renderer_types = convertCharsToStrings(cat(1,rt_tok{:})); Loading Loading
scripts/binauralRenderer_interface/fastconv/get_ivas_binary_header.m +2 −3 Original line number Diff line number Diff line Loading @@ -47,11 +47,10 @@ header.chunksize = 0; %% parse IVAS enum % read the file hrtf_file_reader_path = fullfile(ivas_path, 'lib_util/hrtf_file_reader.h'); % must be replaced if this file is moved 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 RENDERER_TYPE rt_expr = '^\s+(HRTF_READER_RENDERER\w+)'; rt_expr = '^\s+(RENDERER\w+)'; rt_tok = regexp(c, rt_expr, 'tokens', 'dotexceptnewline', 'lineanchors'); renderer_types = convertCharsToStrings(cat(1,rt_tok{:})); Loading