Commit 410113e0 authored by Devansh Kandpal's avatar Devansh Kandpal
Browse files

Fixed bug for scaling tmp to q15

parent ae34214b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -669,7 +669,8 @@ static ivas_error compute_t60_coeffs_fx(
                }
                ELSE
                {
                    tmp = shr( tmp, add( e, 1 ) );
                    //tmp = shr( tmp, add( e, 1 ) ); -> does not work, because e is computed as an offset from 20?? Therefore the offset must be adjusted wrt 20
                    tmp = shr( tmp, sub( 5, e ) );//scaling tmp to Q15
                    target_gains_db_fx[bin_idx] = mult( shr( min120q8, 1 ), tmp ); // Q8
                }
            }