Commit 5d034bfc authored by emerit's avatar emerit
Browse files

proposed fix

parent 2b2b178a
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -173,6 +173,7 @@

#define FIX_2432_ISM_SPIKES_16KHZ                       /* VA: basop issue 2432: fix spikes in ISM decoding at 16kHz output sampling rate */

#define FIX_1530_Codec_Level_Harmonization_Non_diegetic_panning /* FhG: Adjust non-diegetic panning law to harmonize codec levels with 3GPP reference software */
/* ##################### End NON-BE switches ########################### */

/* ################## End MAINTENANCE switches ######################### */
+6 −0
Original line number Diff line number Diff line
@@ -229,8 +229,14 @@ void ivas_apply_non_diegetic_panning(
{
    float pan_left, pan_right;

#ifdef FIX_1530_Codec_Level_Harmonization_Non_diegetic_panning
    float pan = ( non_diegetic_pan_gain + 1.f ) * 0.5f;
    pan_left = sinf( pan * M_PI_2 );
    pan_right = cosf( pan * M_PI_2 );
#else
    pan_left = ( non_diegetic_pan_gain + 1.f ) * 0.5f;
    pan_right = 1.f - pan_left;
#endif
    v_multc( input_f, pan_right, output_f[1], output_frame );
    v_multc( input_f, pan_left, output_f[0], output_frame );