Commit 849959bb authored by Devansh Kandpal's avatar Devansh Kandpal
Browse files

bug fixes + additions in hrtf_file_reader.h

parent 4ee97743
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1875,7 +1875,7 @@ ivas_error ivas_rend_openCrend(
            IF( outConfig == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB )
            {
#ifdef NONBE_FIX_922_PRECOMPUTED_HRTF_PROPERTIES
                IF( ( NE_32( error = ivas_reverb_open_fx( &( hCrend->hReverb ), hHrtfStatistics, hRendCfg, output_Fs ) ), IVAS_ERR_OK ) )
                IF( NE_32( ( error = ivas_reverb_open_fx( &( hCrend->hReverb ), hHrtfStatistics, hRendCfg, output_Fs ) ), IVAS_ERR_OK ) )
#else
                IF( NE_32( ( error = ivas_reverb_open_fx( &( hCrend->hReverb ), inConfig, ( *pCrend )->hHrtfCrend, NULL, hRendCfg, output_Fs ) ), IVAS_ERR_OK ) )
#endif
+0 −1
Original line number Diff line number Diff line
@@ -324,7 +324,6 @@ ivas_error ivas_dirac_dec_init_binaural_data_fx(
#endif
                {
                    return error;
                    x
                }
            }
        }
+18 −2
Original line number Diff line number Diff line
@@ -102,7 +102,12 @@ ivas_error load_HRTF_binary(
 *---------------------------------------------------------------------*/

ivas_error load_reverb_binary(
#ifdef NONBE_FIX_922_PRECOMPUTED_HRTF_PROPERTIES
    IVAS_DEC_HRTF_STATISTICS_HANDLE hHrtfStatistics, /* i/o: HRTF statistics handle              */
    int32_t sampleRate,                              /* i  : sample rate                         */
#else
    IVAS_DEC_HRTF_HANDLE hHrtf, /* i/o: HRTF handle                         */
#endif 
	const hrtfFileReader *hrtfReader /* i/o: pointer to hrtfFileReader handle    */
);
#endif
@@ -174,6 +179,17 @@ ivas_error load_parambin_HRTF_from_binary(
    const hrtfFileReader *hrtfReader             /* i  : pointer to hrtfFileReader handle */
);

#ifdef NONBE_FIX_922_PRECOMPUTED_HRTF_PROPERTIES
/*---------------------------------------------------------------------*
 * destroy_hrtf_statistics()
 *
 * free memory allocated for HRTF statistics binary data
 *---------------------------------------------------------------------*/

ivas_error destroy_hrtf_statistics(
    IVAS_DEC_HRTF_STATISTICS_HANDLE *hHrtfStatistics /* i/o: HRTF statistics handle  */
);
#endif

/*---------------------------------------------------------------------*
 * dealloc_HRTF_binary()