Commit 094d7149 authored by multrus's avatar multrus
Browse files

use rounding to match float

parent 5426db3d
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1070,8 +1070,8 @@ void ivas_ism_dec_digest_tc_fx(
                {
                    /*get HOA gets for direction (ACN/SN3D)*/
#ifdef FIX_2193_ISM_GAINS_WITH_OE
                    Word16 azi = extract_l( L_shr( st_ivas->hIsmMetaData[i]->edited_azimuth_fx, 22 ) );   // Q0
                    Word16 ele = extract_l( L_shr( st_ivas->hIsmMetaData[i]->edited_elevation_fx, 22 ) ); // Q0
                    Word16 azi = round_fx( L_shr( st_ivas->hIsmMetaData[i]->edited_azimuth_fx, Q22 - Q16 ) );   // Q0
                    Word16 ele = round_fx( L_shr( st_ivas->hIsmMetaData[i]->edited_elevation_fx, Q22 - Q16 ) ); // Q0
#else
                    Word16 azi = shr( extract_h( st_ivas->hIsmMetaData[i]->azimuth_fx ), 22 - 16 );                                                                            // Q0
                    Word16 ele = shr( extract_h( st_ivas->hIsmMetaData[i]->elevation_fx ), 22 - 16 );                                                                          // Q0