Commit 85de5fb8 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

fix Q values of azi and ele

parent 958b0ce4
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1055,11 +1055,11 @@ void ivas_ism_dec_digest_tc_fx(
                {
                    /*get HOA gets for direction (ACN/SN3D)*/
#ifdef FIX_2193_ISM_GAINS_WITH_OE
                    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
                    Word16 azi = azimuth_fx;   // Q0
                    Word16 ele = elevation_fx; // Q0
#else
                    Word16 azi = shr( extract_h( azimuth_fx ), 22 - 16 );   // Q0
                    Word16 ele = shr( extract_h( elevation_fx ), 22 - 16 ); // Q0
                    Word16 azi = shr( extract_h( st_ivas->hIsmMetaData[i]->azimuth_fx ), Q22 );   // Q22
                    Word16 ele = shr( extract_h( st_ivas->hIsmMetaData[i]->elevation_fx ), Q22 ); // Q22
#endif

                    ivas_dirac_dec_get_response_fx( azi, ele, st_ivas->hIsmRendererData->gains_fx[i], st_ivas->hIntSetup.ambisonics_order, Q30 );