Commit 8e07d026 authored by emerit's avatar emerit
Browse files

Initial version fix memory counting

parent b152af5f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5384,9 +5384,11 @@ ivas_error ivas_crend_init_from_hrtf_handle(
	HRTFS_HANDLE hrtf);
#endif

#ifndef FIX_MEMORY_COUNTING_HRTF_BINARY_FILE
ivas_error destroy_SetOfHRTF(
	HRTFS_CREND_HANDLE hSetOfHRTF    /* i/o: Set of HRTF CRend handle              */
);
#endif

#endif

+1 −1
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@
#define FIX_301_PLC                                     /* FhG: issue 301 - fix bug of missing update of overlap buffer for DFT-stereo PLC*/
#define FIX_337_TDREND_INTP                             /* Issue 337: TD renderer interpolation threshold set too low */


#define FIX_MEMORY_COUNTING_HRTF_BINARY_FILE
/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
#endif
+2 −0
Original line number Diff line number Diff line
@@ -1759,7 +1759,9 @@ void ivas_destroy_dec(
    /* CRend binaural renderer handle */
    if ( st_ivas->hSetOfHRTF != NULL )
    {
#ifndef FIX_MEMORY_COUNTING_HRTF_BINARY_FILE
        destroy_SetOfHRTF( st_ivas->hSetOfHRTF );
#endif        
        ivas_HRTF_CRend_binary_close( &st_ivas->hSetOfHRTF );
    }

+2 −1
Original line number Diff line number Diff line
@@ -875,6 +875,7 @@ ivas_error ivas_crend_init_from_setofhrtf(
#endif
#endif

#ifndef FIX_MEMORY_COUNTING_HRTF_BINARY_FILE
/*---------------------------------------------------------------------*
 * destroy_HRTF()
 *
@@ -952,7 +953,7 @@ ivas_error destroy_SetOfHRTF(
}

#endif

#endif
#ifndef FIX_197_CREND_INTERFACE
/*-------------------------------------------------------------------------
 * ivas_crend_open()
+3 −1
Original line number Diff line number Diff line
@@ -40,7 +40,9 @@
#include "ivas_rom_TdBinauralRenderer.h"
#include "ivas_error.h"
#include "wmc_auto.h"

#ifdef FIX_MEMORY_COUNTING_HRTF_BINARY_FILE
#include "hrtf_file_reader.h"
#endif

/*-------------------------------------------------------------------*
 * Local constants
Loading