Commit f2efa3c5 authored by Serdar Buyuksarac's avatar Serdar Buyuksarac
Browse files

Update ivas_hrtf_statistics_open function and its call

parent 56448d0c
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -1995,13 +1995,6 @@ ivas_error ivas_init_decoder(
     * Allocate and initialize rendering handles
     *--------------------------------------------------------------------*/

#ifdef NONBE_FIX_922_PRECOMPUTED_HRTF_PROPERTIES
    if ( ( error = ivas_hrtf_statistics_open( &st_ivas->hHrtfStatistics, st_ivas->hDecoderConfig->output_Fs ) ) != IVAS_ERR_OK )
    {
        return error;
    }
#endif

    if ( st_ivas->renderer_type == RENDERER_BINAURAL_FASTCONV || st_ivas->renderer_type == RENDERER_BINAURAL_FASTCONV_ROOM )
    {

@@ -2191,6 +2184,16 @@ ivas_error ivas_init_decoder(
        }
    }

#ifdef NONBE_FIX_922_PRECOMPUTED_HRTF_PROPERTIES
    if ( st_ivas->hIntSetup.output_config == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB )
    {
        if ( ( error = ivas_hrtf_statistics_open( &st_ivas->hHrtfStatistics, st_ivas->hDecoderConfig->output_Fs ) ) != IVAS_ERR_OK )
        {
            return error;
        }
    }
#endif

    /*-----------------------------------------------------------------*
     * LFE handles for rendering after rendering to adjust LFE delay to binaural filter delay
     *-----------------------------------------------------------------*/
+33 −34
Original line number Diff line number Diff line
@@ -295,8 +295,7 @@ ivas_error ivas_hrtf_statistics_open(
        /* Tables already loaded from file */
        return IVAS_ERR_OK;
    }
    else
    {

    /* Initialise tables from ROM */
    HRTFS_STATISTICS *HrtfStatistics;

@@ -330,7 +329,7 @@ ivas_error ivas_hrtf_statistics_open(
    HrtfStatistics->fromROM = TRUE;

    *hHrtfStatistics = HrtfStatistics;
    }


    return IVAS_ERR_OK;
}