Commit 611e7dc0 authored by thomas dettbarn's avatar thomas dettbarn
Browse files

applied the clang patch and made a shift from Q12->Q11 more explicit.

parent a781c1af
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2446,10 +2446,10 @@ ivas_error ivas_binaural_reverb_init(
        }

#ifdef FIX_1831_REVERB_REGRESSION
        temp32 = Mult_32_16( roomAcoustics->acousticPreDelay_fx, ( IVAS_48k/ CLDFB_NO_CHANNELS_MAX/ 2 ) );    // Q11
        temp32 = Mult_32_16( roomAcoustics->acousticPreDelay_fx, ( ( IVAS_48k / CLDFB_NO_CHANNELS_MAX ) >> 1 ) ); // Q11
        preDelay = extract_l( L_shr( L_add( temp32, L_shl( 1, 10 ) ), 11 ) );                                // Q0
#else
        preDelay = (int16_t) roundf( 48000.0f * roomAcoustics->acousticPreDelay / CLDFB_NO_CHANNELS_MAX );
        preDelay = (int16_t) roundf( ( 48000.0f / CLDFB_NO_CHANNELS_MAX ) * roomAcoustics->acousticPreDelay );
#endif
#ifdef FIX_1741_REVERB_TIMES_Q_FORMAT
        floatToFixed_arrL( t60_temp, t60, Q26, CLDFB_NO_CHANNELS_MAX );