Commit 0863f79d authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

switch to saturating adds to add objects and ambisonics signals

parent 0ea6d0cf
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2269,7 +2269,7 @@ ivas_error ivas_jbm_dec_render_fx(
                            {
                                Word32 tmp1 = Mpy_32_32( p_tc_fx[n + st_ivas->nchan_ism][i], gain ); // Q11 + Q30 - 32 = Q9
                                tmp1 = L_shl( tmp1, 2 );                                             // Q9 --> Q11
                                p_output_fx[n][i] = L_add( p_output_fx[n][i], tmp1 );                // Q11
                                p_output_fx[n][i] = L_add_sat( p_output_fx[n][i], tmp1 );                // Q11
                            }
                        }
                    }
@@ -2281,7 +2281,7 @@ ivas_error ivas_jbm_dec_render_fx(
                            {
                                FOR( i = 0; i < *nSamplesRendered; i++ )
                                {
                                    p_output_fx[n][i] = L_add( p_output_fx[n][i], p_tc_fx[n + st_ivas->nchan_ism][i] ); // Q11
                                    p_output_fx[n][i] = L_add_sat( p_output_fx[n][i], p_tc_fx[n + st_ivas->nchan_ism][i] ); // Q11
                                }
                            }
                        }