Commit b981b937 authored by Tapani Pihlajakuja's avatar Tapani Pihlajakuja
Browse files

Add missing copying of HRTF data parametric binauralizer on the McMASA reconfig path.

parent f4842106
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -110,6 +110,14 @@ ivas_error ivas_mcmasa_dec_reconfig(
    {
        /* open parametric binaural renderer */
#ifdef HRTF_BINARY_FILE
        if ( st_ivas->renderer_type != RENDERER_STEREO_PARAMETRIC )
        {
            if ( ( error = ivas_dirac_dec_binaural_copy_hrtfs( &st_ivas->hHrtfParambin ) ) != IVAS_ERR_OK )
            {
                return error;
            }
        }

        if ( ( error = ivas_dirac_dec_init_binaural_data( st_ivas, st_ivas->hHrtfParambin ) ) != IVAS_ERR_OK )
#else
        if ( ( error = ivas_dirac_dec_init_binaural_data( st_ivas ) ) != IVAS_ERR_OK )
+8 −0
Original line number Diff line number Diff line
@@ -1077,6 +1077,14 @@ static ivas_error ivas_mc_dec_reconfig(
            else if ( st_ivas->hDiracDecBin == NULL && ( st_ivas->renderer_type == RENDERER_BINAURAL_PARAMETRIC || st_ivas->renderer_type == RENDERER_BINAURAL_PARAMETRIC_ROOM || st_ivas->renderer_type == RENDERER_STEREO_PARAMETRIC ) )
            {
#ifdef HRTF_BINARY_FILE
                if ( st_ivas->renderer_type != RENDERER_STEREO_PARAMETRIC )
                {
                    if ( ( error = ivas_dirac_dec_binaural_copy_hrtfs( &st_ivas->hHrtfParambin ) ) != IVAS_ERR_OK )
                    {
                        return error;
                    }
                }

                if ( ( error = ivas_dirac_dec_init_binaural_data( st_ivas, st_ivas->hHrtfParambin ) ) != IVAS_ERR_OK )
#else
                if ( ( error = ivas_dirac_dec_init_binaural_data( st_ivas ) ) != IVAS_ERR_OK )