Commit 9f54a401 authored by multrus's avatar multrus
Browse files

[cleanup] accept NONBE_FIX_1262_OSBA_STEREO

parent cd13a1f6
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -5592,9 +5592,6 @@ void ivas_osba_stereo_add_channels(
    const float gain,                                           /* i  : gain bed value                          */
    const int16_t nchan_out,                                    /* i  : number of output channels               */
    const int16_t nchan_ism,                                    /* i  : number of ISM channels                  */
#ifndef NONBE_FIX_1262_OSBA_STEREO
    const int16_t ism_mode,                                     /* i  : ISM mode                                */
#endif
    const int16_t n_samples_to_render                           /* i  : output frame length per channel         */
);

+0 −1
Original line number Diff line number Diff line
@@ -168,7 +168,6 @@
/* any switch which is non-be wrt selection floating point code */
/* all switches in this category should start with "NONBE_" */

#define NONBE_FIX_1262_OSBA_STEREO                      /* FhG: issue 1262: Fix missing scaling factor for OSBA stereo output */

/* ##################### End NON-BE switches ########################### */

+0 −4
Original line number Diff line number Diff line
@@ -1096,11 +1096,7 @@ ivas_error ivas_jbm_dec_render(
                ivas_ism_render_sf( st_ivas, st_ivas->renderer_type, p_output, *nSamplesRendered );

                /* add already rendered SBA part */
#ifdef NONBE_FIX_1262_OSBA_STEREO
                ivas_osba_stereo_add_channels( p_tc, p_output, st_ivas->hSbaIsmData->gain_bed, nchan_out, st_ivas->nchan_ism, *nSamplesRendered );
#else
                ivas_osba_stereo_add_channels( p_tc, p_output, st_ivas->hSbaIsmData->gain_bed, nchan_out, st_ivas->nchan_ism, st_ivas->ism_mode, *nSamplesRendered );
#endif
            }
            else if ( st_ivas->renderer_type == RENDERER_OSBA_AMBI || st_ivas->renderer_type == RENDERER_OSBA_LS || st_ivas->renderer_type == RENDERER_BINAURAL_FASTCONV_ROOM )
            {
+0 −19
Original line number Diff line number Diff line
@@ -314,18 +314,11 @@ void ivas_osba_stereo_add_channels(
    const float gain,        /* i  : gain bed value                    */
    const int16_t nchan_out, /* i  : number of output channels         */
    const int16_t nchan_ism, /* i  : number of ISM channels            */
#ifndef NONBE_FIX_1262_OSBA_STEREO
    const int16_t ism_mode, /* i  : ISM mode                          */
#endif
    const int16_t n_samples_to_render /* i  : output frame length per channel   */
)
{
    int16_t n;

#ifndef NONBE_FIX_1262_OSBA_STEREO
    if ( ism_mode == ISM_SBA_MODE_DISC )
    {
#endif
        if ( gain != 1.0f && gain >= 0.0f )
        {
            int16_t i;
@@ -344,23 +337,11 @@ void ivas_osba_stereo_add_channels(
                v_add( output_f[n], tc_f[n + nchan_ism], output_f[n], n_samples_to_render );
            }
        }
#ifndef NONBE_FIX_1262_OSBA_STEREO
    }
    else
    {
        for ( n = 0; n < nchan_out; n++ )
        {
            v_add( output_f[n], tc_f[n + nchan_ism], output_f[n], n_samples_to_render );
        }
    }
#endif
#ifdef NONBE_FIX_1262_OSBA_STEREO

    for ( n = 0; n < nchan_out; n++ )
    {
        v_multc( output_f[n], 0.5f, output_f[n], n_samples_to_render );
    }
#endif

    return;
}