Commit 28b12e08 authored by emerit's avatar emerit
Browse files

fix clang format fail

parent 2a9ac7ac
Loading
Loading
Loading
Loading
+18 −2
Original line number Diff line number Diff line
@@ -721,7 +721,6 @@ void ivas_reverb_get_hrtf_set_properties(
        }
        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 */
@@ -739,7 +738,24 @@ void ivas_reverb_get_hrtf_set_properties(
                    relative_pos = 1.0f;
                }
            }
#ifdef NONBE_FIX_AVG_IAC_CLDFB_REVERB
        }
#else
        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 */
        {
            base_idx = 0;
            relative_pos = 0.0f;
        }
        else
        {
            base_idx = (int16_t) floorf( tbl_index );
            relative_pos = tbl_index - base_idx;
            if ( base_idx > ( in_freq_count - 2 ) ) /* In case of extrapolation (above last bin), choose nearest */
            {
                base_idx = in_freq_count - 2;
                relative_pos = 1.0f;
            }
        }
#endif
        /* Computing 2 bins data for later interpolation */