Commit 0a34775b authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

Correct exponent scaling of outAudio.data_fx before buffer accumulation in renderSbaToBinaural()

parent 6dff3bfd
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -101,6 +101,7 @@
#define FIX_2488_PREVENT_NEG_PITCH                      /* VA: Fix for 2488, use saturation to prevent possible wrap-around, thus negative pitch values */
#define FIX_1547_ISMDTX_HANDLE                          /* VA: float issue 1547: fix use of 'hISMDTX' handle */
#define FIX_1540_EXPOSE_PT_IN_RTP_HEADER_API            /* Expose Payload Type setting in RTP Header */
#define FIX_2495_Q_ALIGN_OSBA_RENDERER                  /* FhG: Basop issue #2495: Corrected exponent scaling of outAudio.data_fx before buffer accumulation in renderSbaToBinaural(). */

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

+3 −0
Original line number Diff line number Diff line
@@ -8672,6 +8672,9 @@ static ivas_error renderSbaToBinaural(

        IF( hCrend->hReverb != NULL )
        {
#ifdef FIX_2495_Q_ALIGN_OSBA_RENDERER
            scale_sig32( outAudio.data_fx, i_mult( outAudio.config.numChannels, outAudio.config.numSamplesPerChannel ), -Q2 ); // Align Q of outAudio.data_fx with Q of output_buffer_fx: *pCrend->p_io_qfactor = *outAudio.pq_fact - Q2
#endif
            *outAudio.pq_fact = sub( *outAudio.pq_fact, Q2 );
            move16();
        }