Commit 14711f90 authored by multrus's avatar multrus
Browse files

Merge branch...

Merge branch 'basop-2283-isar-post-renderer-broken-for-externally-rendered-omasa-input-and-binaural_split_coded' of https://forge.3gpp.org/rep/sa4/audio/ivas-basop into basop-2283-isar-post-renderer-broken-for-externally-rendered-omasa-input-and-binaural_split_coded
parents 542d51ad 63a9e88d
Loading
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -7210,16 +7210,21 @@ static ivas_error renderIsmToSplitBinaural(
                        Word32 *imagBuffer_fx = &tmpBinaural_CldfbIm[BINAURAL_CHANNELS * pos_idx + ch][slot_idx][0];
                        Word16 noChannels = ismInput->base.ctx.pSplitRendWrapper->hCldfbHandles->cldfbAna[pos_idx + ch]->no_channels;

#ifdef FIX_2283_ACCU_CLDFB
                        Word16 scale = sub( exp, q_cldfb );
                        FOR( Word16 j = 0; j < noChannels; j++ )
                        {
#ifdef FIX_2283_ACCU_CLDFB
                            realBuffer_fx[j] = L_shl( realBuffer_fx[j], sub( exp, q_cldfb ) ); /*Q(exp)*/
                            imagBuffer_fx[j] = L_shl( imagBuffer_fx[j], sub( exp, q_cldfb ) ); /*Q(exp)*/
                            realBuffer_fx[j] = L_shl( realBuffer_fx[j], scale ); /*Q(exp)*/
                            imagBuffer_fx[j] = L_shl( imagBuffer_fx[j], scale ); /*Q(exp)*/
                        }
#else
                            realBuffer_fx[j] = L_shl( realBuffer_fx[j], sub( sub( exp, q_cldfb ), 1 ) ); /*Q(exp)*/
                            imagBuffer_fx[j] = L_shl( imagBuffer_fx[j], sub( sub( exp, q_cldfb ), 1 ) ); /*Q(exp)*/
#endif
                        Word16 scale = sub( sub( exp, q_cldfb ), 1 );
                        FOR( Word16 j = 0; j < noChannels; j++ )
                        {
                            realBuffer_fx[j] = L_shl( realBuffer_fx[j], scale ); /*Q(exp)*/
                            imagBuffer_fx[j] = L_shl( imagBuffer_fx[j], scale ); /*Q(exp)*/
                        }
#endif
                        q_cldfb = exp;
                    }
#endif