Loading apps/decoder.c +8 −2 Original line number Diff line number Diff line Loading @@ -791,7 +791,10 @@ cleanup: { #ifdef FIX_CREND_SIMPLIFY_CODE destroy_td_hrtf( hHrtfBinary.hHrtfTD ); if ( arg.outputConfig == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB ) { destroy_hrtf_statistics( hHrtfBinary.hHrtfStatistics ); } #else IVAS_DEC_GetHrtfHandle( hIvasDec, &hHrtfTD ); if ( hHrtfTD != NULL ) Loading @@ -814,7 +817,10 @@ cleanup: * value as not handled. This is needed as HRTF statistics from ROM are currently converted from float values. */ #ifdef FIX_CREND_SIMPLIFY_CODE IVAS_DEC_GetHrtfStatisticsHandle( hIvasDec, &hHrtfBinary.hHrtfStatistics ); if ( arg.outputConfig == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB ) { destroy_hrtf_statistics( hHrtfBinary.hHrtfStatistics ); } #else IVAS_DEC_GetHrtfStatisticsHandle( hIvasDec, &hHrtfStatistics ); destroy_hrtf_statistics( hHrtfStatistics ); Loading apps/renderer.c +4 −0 Original line number Diff line number Diff line Loading @@ -2178,6 +2178,10 @@ cleanup: destroy_td_hrtf( hHrtfTD ); } #endif if ( args.outConfig.audioConfig == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB ) { destroy_hrtf_statistics( hHrtfStatistics ); } destroy_hrtf_statistics( hHrtfStatistics ); IVAS_REND_Close( &hIvasRend ); IsmPositionProvider_close( positionProvider ); Loading lib_util/hrtf_file_reader.c +0 −4 Original line number Diff line number Diff line Loading @@ -3515,11 +3515,7 @@ void destroy_hrtf_statistics( IVAS_DEC_HRTF_STATISTICS_HANDLE *hHrtfStatistics /* i/o: HRTF statistics handle */ ) { #ifdef USE_REVERB_16BIT_ROM if ( ( hHrtfStatistics != NULL ) && ( *hHrtfStatistics != NULL ) && ( ( *hHrtfStatistics )->fromROM == FALSE ) ) #else if ( ( hHrtfStatistics != NULL ) && ( *hHrtfStatistics != NULL ) ) #endif { if ( ( *hHrtfStatistics )->average_energy_l_dyn != NULL ) { Loading Loading
apps/decoder.c +8 −2 Original line number Diff line number Diff line Loading @@ -791,7 +791,10 @@ cleanup: { #ifdef FIX_CREND_SIMPLIFY_CODE destroy_td_hrtf( hHrtfBinary.hHrtfTD ); if ( arg.outputConfig == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB ) { destroy_hrtf_statistics( hHrtfBinary.hHrtfStatistics ); } #else IVAS_DEC_GetHrtfHandle( hIvasDec, &hHrtfTD ); if ( hHrtfTD != NULL ) Loading @@ -814,7 +817,10 @@ cleanup: * value as not handled. This is needed as HRTF statistics from ROM are currently converted from float values. */ #ifdef FIX_CREND_SIMPLIFY_CODE IVAS_DEC_GetHrtfStatisticsHandle( hIvasDec, &hHrtfBinary.hHrtfStatistics ); if ( arg.outputConfig == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB ) { destroy_hrtf_statistics( hHrtfBinary.hHrtfStatistics ); } #else IVAS_DEC_GetHrtfStatisticsHandle( hIvasDec, &hHrtfStatistics ); destroy_hrtf_statistics( hHrtfStatistics ); Loading
apps/renderer.c +4 −0 Original line number Diff line number Diff line Loading @@ -2178,6 +2178,10 @@ cleanup: destroy_td_hrtf( hHrtfTD ); } #endif if ( args.outConfig.audioConfig == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB ) { destroy_hrtf_statistics( hHrtfStatistics ); } destroy_hrtf_statistics( hHrtfStatistics ); IVAS_REND_Close( &hIvasRend ); IsmPositionProvider_close( positionProvider ); Loading
lib_util/hrtf_file_reader.c +0 −4 Original line number Diff line number Diff line Loading @@ -3515,11 +3515,7 @@ void destroy_hrtf_statistics( IVAS_DEC_HRTF_STATISTICS_HANDLE *hHrtfStatistics /* i/o: HRTF statistics handle */ ) { #ifdef USE_REVERB_16BIT_ROM if ( ( hHrtfStatistics != NULL ) && ( *hHrtfStatistics != NULL ) && ( ( *hHrtfStatistics )->fromROM == FALSE ) ) #else if ( ( hHrtfStatistics != NULL ) && ( *hHrtfStatistics != NULL ) ) #endif { if ( ( *hHrtfStatistics )->average_energy_l_dyn != NULL ) { Loading