Loading lib_com/ivas_cnst.h +6 −1 Original line number Diff line number Diff line Loading @@ -1632,6 +1632,9 @@ typedef enum #define MAX_INTERPOLATION_STEPS 12 #define LR_IAC_LENGTH_NR_FC ( RV_LENGTH_NR_FC ) #ifdef NONBE_FIX_AVG_IAC_CLDFB_REVERB #define LR_IAC_LENGTH_NR_FC_16KHZ ( RV_LENGTH_NR_FC_16KHZ ) #endif /* ----- Enums - TD Renderer ----- */ Loading Loading @@ -1684,7 +1687,9 @@ typedef enum #define RV_FILTER_MAX_FFT_SIZE ( 512 ) #define RV_FILTER_MAX_HISTORY ( 512 - 160 ) /* for longest history */ #define RV_LENGTH_NR_FC ( RV_FILTER_MAX_FFT_SIZE / 2 ) + 1 #ifdef NONBE_FIX_AVG_IAC_CLDFB_REVERB #define RV_LENGTH_NR_FC_16KHZ ( RV_FILTER_MAX_FFT_SIZE / 4 ) + 1 #endif #define IVAS_REVERB_DEFAULT_N_BANDS 31 Loading lib_com/options.h +1 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,7 @@ #define NONBE_FIX_856_TCX_LTP_SYNTH_FILTER /* FhG: issue 856: correct filtering length for tcx-ltp synth filtering*/ #define NONBE_UNIFIED_DECODING_PATHS /* FhG: unify decoding paths */ #define NONBE_FIX_BINARY_BINAURAL_READING /* Add support for reading binaural binary file */ #define NONBE_FIX_AVG_IAC_CLDFB_REVERB /* Add computation avg energy and iac tables for rom and binaural binary file */ #ifdef NONBE_UNIFIED_DECODING_PATHS #define NONBE_UNIFIED_DECODING_PATHS_FIX /* VA: issue 876: fixes within NONBE_UNIFIED_DECODING_PATHS */ #endif Loading lib_rend/ivas_reverb_filter_design.c +21 −11 Original line number Diff line number Diff line Loading @@ -714,6 +714,14 @@ void ivas_reverb_get_hrtf_set_properties( const float norm_freq = out_freq_step * out_bin_idx; /* Computing the bin index in the source data */ #ifdef NONBE_FIX_AVG_IAC_CLDFB_REVERB if ( in_freq_count == out_freq_count ) { base_idx = out_bin_idx; } else { #endif const float tbl_index = ( norm_freq - inp_freq_offset ) / inp_freq_step; if ( tbl_index <= 0.0f ) /* In case of extrapolation (below 1st bin), choose nearest */ Loading @@ -731,7 +739,9 @@ void ivas_reverb_get_hrtf_set_properties( relative_pos = 1.0f; } } #ifdef NONBE_FIX_AVG_IAC_CLDFB_REVERB } #endif /* Computing 2 bins data for later interpolation */ /* Zeroing before accumalation for average value computing */ Loading lib_rend/ivas_rom_binaural_crend_head.c +194 −236 File changed.Preview size limit exceeded, changes collapsed. Show changes lib_rend/ivas_rom_binaural_crend_head.h +3 −3 Original line number Diff line number Diff line Loading @@ -364,9 +364,9 @@ extern float defaultHRIR_left_avg_power_32kHz[LR_IAC_LENGTH_NR_FC]; extern float defaultHRIR_right_avg_power_32kHz[LR_IAC_LENGTH_NR_FC]; /* Sample Rate = 16000 */ extern float defaultHRIR_coherence_16kHz[LR_IAC_LENGTH_NR_FC]; extern float defaultHRIR_left_avg_power_16kHz[LR_IAC_LENGTH_NR_FC]; extern float defaultHRIR_right_avg_power_16kHz[LR_IAC_LENGTH_NR_FC]; extern float defaultHRIR_coherence_16kHz[LR_IAC_LENGTH_NR_FC_16KHZ]; extern float defaultHRIR_left_avg_power_16kHz[LR_IAC_LENGTH_NR_FC_16KHZ]; extern float defaultHRIR_right_avg_power_16kHz[LR_IAC_LENGTH_NR_FC_16KHZ]; #endif Loading Loading
lib_com/ivas_cnst.h +6 −1 Original line number Diff line number Diff line Loading @@ -1632,6 +1632,9 @@ typedef enum #define MAX_INTERPOLATION_STEPS 12 #define LR_IAC_LENGTH_NR_FC ( RV_LENGTH_NR_FC ) #ifdef NONBE_FIX_AVG_IAC_CLDFB_REVERB #define LR_IAC_LENGTH_NR_FC_16KHZ ( RV_LENGTH_NR_FC_16KHZ ) #endif /* ----- Enums - TD Renderer ----- */ Loading Loading @@ -1684,7 +1687,9 @@ typedef enum #define RV_FILTER_MAX_FFT_SIZE ( 512 ) #define RV_FILTER_MAX_HISTORY ( 512 - 160 ) /* for longest history */ #define RV_LENGTH_NR_FC ( RV_FILTER_MAX_FFT_SIZE / 2 ) + 1 #ifdef NONBE_FIX_AVG_IAC_CLDFB_REVERB #define RV_LENGTH_NR_FC_16KHZ ( RV_FILTER_MAX_FFT_SIZE / 4 ) + 1 #endif #define IVAS_REVERB_DEFAULT_N_BANDS 31 Loading
lib_com/options.h +1 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,7 @@ #define NONBE_FIX_856_TCX_LTP_SYNTH_FILTER /* FhG: issue 856: correct filtering length for tcx-ltp synth filtering*/ #define NONBE_UNIFIED_DECODING_PATHS /* FhG: unify decoding paths */ #define NONBE_FIX_BINARY_BINAURAL_READING /* Add support for reading binaural binary file */ #define NONBE_FIX_AVG_IAC_CLDFB_REVERB /* Add computation avg energy and iac tables for rom and binaural binary file */ #ifdef NONBE_UNIFIED_DECODING_PATHS #define NONBE_UNIFIED_DECODING_PATHS_FIX /* VA: issue 876: fixes within NONBE_UNIFIED_DECODING_PATHS */ #endif Loading
lib_rend/ivas_reverb_filter_design.c +21 −11 Original line number Diff line number Diff line Loading @@ -714,6 +714,14 @@ void ivas_reverb_get_hrtf_set_properties( const float norm_freq = out_freq_step * out_bin_idx; /* Computing the bin index in the source data */ #ifdef NONBE_FIX_AVG_IAC_CLDFB_REVERB if ( in_freq_count == out_freq_count ) { base_idx = out_bin_idx; } else { #endif const float tbl_index = ( norm_freq - inp_freq_offset ) / inp_freq_step; if ( tbl_index <= 0.0f ) /* In case of extrapolation (below 1st bin), choose nearest */ Loading @@ -731,7 +739,9 @@ void ivas_reverb_get_hrtf_set_properties( relative_pos = 1.0f; } } #ifdef NONBE_FIX_AVG_IAC_CLDFB_REVERB } #endif /* Computing 2 bins data for later interpolation */ /* Zeroing before accumalation for average value computing */ Loading
lib_rend/ivas_rom_binaural_crend_head.c +194 −236 File changed.Preview size limit exceeded, changes collapsed. Show changes
lib_rend/ivas_rom_binaural_crend_head.h +3 −3 Original line number Diff line number Diff line Loading @@ -364,9 +364,9 @@ extern float defaultHRIR_left_avg_power_32kHz[LR_IAC_LENGTH_NR_FC]; extern float defaultHRIR_right_avg_power_32kHz[LR_IAC_LENGTH_NR_FC]; /* Sample Rate = 16000 */ extern float defaultHRIR_coherence_16kHz[LR_IAC_LENGTH_NR_FC]; extern float defaultHRIR_left_avg_power_16kHz[LR_IAC_LENGTH_NR_FC]; extern float defaultHRIR_right_avg_power_16kHz[LR_IAC_LENGTH_NR_FC]; extern float defaultHRIR_coherence_16kHz[LR_IAC_LENGTH_NR_FC_16KHZ]; extern float defaultHRIR_left_avg_power_16kHz[LR_IAC_LENGTH_NR_FC_16KHZ]; extern float defaultHRIR_right_avg_power_16kHz[LR_IAC_LENGTH_NR_FC_16KHZ]; #endif Loading