Commit 02f21664 authored by emerit's avatar emerit
Browse files

add missing file

parent c3d0a0e9
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -733,6 +733,7 @@ for fs = [48000 32000 16000]
        c_file_content = [ arr_str newline '};' newline '#endif' newline];
        fprintf(fileID_c,'%s', c_file_content);
        
        
        if dataSpec.makeFxFltBE
            arr_str_all = num2hex(single(float_WR));
        else
@@ -911,8 +912,9 @@ for fs = [48000 32000 16000]
        numCol = 25;
        numIter = floor(HRTF_MODEL_N_SECTIONS*size(mod_hrf.WL{1},1)/numCol);
        numRemain = HRTF_MODEL_N_SECTIONS*size(mod_hrf.WL{1},1) - numCol * numIter;
        c_file_content = ...  
            ['const uint32_t defaultHRIR_rom_ER' num2str(fs/1000) '[HRTF_MODEL_N_SECTIONS * ' int2str(size(mod_hrf.WL{1}, 1)) '] = {' newline ];
        
        c_file_content = [...
            newline 'const uint32_t defaultHRIR_rom_ER' num2str(fs/1000) '[HRTF_MODEL_N_SECTIONS * ' int2str(size(mod_hrf.WL{1}, 1)) '] = {' newline ];
        fprintf(fileID_c,'%s', c_file_content);
        for ind = 1: numIter
            arr_str = join(mat2str(arr_str_all((ind-1) * numCol + 1 :ind * numCol, : )));
@@ -1131,8 +1133,8 @@ for fs = [48000 32000 16000]
            numCol = 25;
            numIter = floor(length(azimSplineShapeITD_all)/numCol);
            numRemain = length(azimSplineShapeITD_all) - numCol * numIter;
            c_file_content = ...  
                ['const uint32_t defaultHRIR_rom_ITD_azimBsShape[' num2str(length(azimSplineShapeITD_all)) '] = {' newline ];
            c_file_content = [...
                'const uint32_t defaultHRIR_rom_ITD_azimBsShape[' num2str(length(azimSplineShapeITD_all)) '] = {' newline ];
            fprintf(fileID_c,'%s', c_file_content);
            for ind = 1: numIter
                arr_str = join(mat2str(arr_str_all((ind-1) * numCol + 1 :ind * numCol, : )));
@@ -1214,8 +1216,8 @@ for fs = [48000 32000 16000]
            numCol = 25;
            numIter = floor(length(elevSplineShapeITD_all)/numCol);
            numRemain = length(elevSplineShapeITD_all) - numCol * numIter;
            c_file_content = ...  
                ['const uint32_t defaultHRIR_rom_ITD_elevBsShape[' num2str(length(elevSplineShapeITD_all)) '] = {' newline ];

            c_file_content = ['const uint32_t defaultHRIR_rom_ITD_elevBsShape[' num2str(length(elevSplineShapeITD_all)) '] = {' newline ];
            fprintf(fileID_c,'%s', c_file_content);
            for ind = 1: numIter
                arr_str = join(mat2str(arr_str_all((ind-1) * numCol + 1 :ind * numCol, : )));
@@ -1362,13 +1364,14 @@ if dataSpec.genRomFile
        '#endif'
        ''
        }, newline));
    
    
    fileID_h = fopen(h_file_name,'at');
    
    fprintf(fileID_h,'%s', h_file_content);
    
    fclose(fileID_h);
    

    c_file_content = string(join({'' ...
        '#undef WMC_TOOL_SKIP' ...
        '' ...