Commit 35e4df9f authored by Serdar Buyuksarac's avatar Serdar Buyuksarac
Browse files

Add ivas_hrtf_statistics_open() call into renderer

parent 2b9eac58
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1059,6 +1059,13 @@ int main(
        exit( -1 );
    }

#ifdef NONBE_FIX_922_PRECOMPUTED_HRTF_PROPERTIES
    if ( ( error = IVAS_REND_InitHRTFStatisticsHandle( hIvasRend ) ) != IVAS_ERR_OK )
    {
        return error;
    }
#endif

#ifdef NONBE_FIX_BINARY_BINAURAL_READING
    if ( !isEmptyString( args.customHrtfFilePath ) )
    {
+18 −1
Original line number Diff line number Diff line
@@ -8985,6 +8985,23 @@ ivas_error IVAS_REND_GetHrtfStatisticsHandle(

    return IVAS_ERR_OK;
}

/*---------------------------------------------------------------------*
 * IVAS_REND_InitHRTFStatisticsHandle( )
 *
 *
 *---------------------------------------------------------------------*/
ivas_error IVAS_REND_InitHRTFStatisticsHandle( IVAS_REND_HANDLE hIvasRend )
{
    ivas_error error;

    if ( ( error = ivas_hrtf_statistics_open( &( hIvasRend->hHrtfs.hHrtfStatistics ), hIvasRend->sampleRateOut ) ) != IVAS_ERR_OK )
    {
        return error;
    }

    return IVAS_ERR_OK;
}
#endif

static ivas_error ivas_masa_ext_rend_dirac_rend_init(
+4 −0
Original line number Diff line number Diff line
@@ -227,6 +227,10 @@ ivas_error IVAS_REND_GetHrtfStatisticsHandle(
    IVAS_REND_HANDLE hIvasRend,                     /* i/o: IVAS renderer handle                                */
    IVAS_DEC_HRTF_STATISTICS_HANDLE **hHrtfStatistics     /* o  : HRTF statistics handle                              */
);

ivas_error IVAS_REND_InitHRTFStatisticsHandle( 
	IVAS_REND_HANDLE hIvasRend                  /* i/o: IVAS renderer handle                                */
);
#endif
#endif