Commit 859d33d7 authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_1530_Codec_Level_Harmonization_Non_diegetic_panning

parent cbf3b9fd
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -170,7 +170,6 @@
#define FIX_FLOAT_1493_MASA_ENCODE_STABILITY_IMPROVE    /* Nokia: float issue 1493: Improves float decision stability in MASA encoding by adjusting reduction code */


#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 ######################### */
+0 −5
Original line number Diff line number Diff line
@@ -229,14 +229,9 @@ 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 * EVS_PI * 0.5f );
    pan_right = cosf( pan * EVS_PI * 0.5f );
#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 );