Commit 1c1de2ce authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

represent gain_bed in Q11

parent e4ea838f
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -3908,7 +3908,7 @@ ivas_error ivas_osba_render_sf_fx(
void ivas_osba_stereo_add_channels_fx(
    Word32 *tc_fx[],                    /* i  : transport channels                */
    Word32 *output_fx[],                /* i/o: output channels                   */
    const Word16 gain,                 /* i  : gain bed value                    */
    const Word16 gain,                  /* i  : gain bed value       Q11          */
    const Word16 nchan_out,             /* i  : number of output channels         */
    const Word16 nchan_ism,             /* i  : number of ISM channels            */
    const UWord16 n_samples_to_render   /* i  : output frame length per channel   */
+1 −1
Original line number Diff line number Diff line
@@ -2231,7 +2231,7 @@ ivas_error ivas_jbm_dec_render_fx(

                /* add already rendered SBA part */
#ifdef NONBE_1894_OSBA_SCALING
                ivas_osba_stereo_add_channels_fx( p_tc_fx, p_output_fx, 1, nchan_out, st_ivas->nchan_ism, *nSamplesRendered );
                ivas_osba_stereo_add_channels_fx( p_tc_fx, p_output_fx, ONE_IN_Q11, nchan_out, st_ivas->nchan_ism, *nSamplesRendered );
#else
                FOR( n = 0; n < nchan_out; n++ )
                {
+2 −2
Original line number Diff line number Diff line
@@ -358,7 +358,7 @@ ivas_error ivas_osba_render_sf_fx(
void ivas_osba_stereo_add_channels_fx(
    Word32 *tc_fx[],                  /* i  : transport channels                */
    Word32 *output_fx[],              /* i/o: output channels                   */
    const Word16 gain,                /* i  : gain bed value                    */
    const Word16 gain,                /* i  : gain bed value        Q11         */
    const Word16 nchan_out,           /* i  : number of output channels         */
    const Word16 nchan_ism,           /* i  : number of ISM channels            */
    const UWord16 n_samples_to_render /* i  : output frame length per channel   */
@@ -370,7 +370,7 @@ void ivas_osba_stereo_add_channels_fx(
    IF ( ism_mode == ISM_SBA_MODE_DISC )
    {
#endif
    IF( NE_16( gain, 1 ) )
    IF( NE_16( gain, ONE_IN_Q11 ) )
    {
        assert( 0 && "Object editing is not implemented in the BASOP code!" );
    }