Commit 0d51d545 authored by Fabian Bauer's avatar Fabian Bauer
Browse files

tiny corrections

parent f69b2392
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ static void UpdateSubblockEnergies_ivas_fx( Word16 const *input, const Word16 nS
/*  Functions that define transient detectors   */
/*                                              */
/************************************************/

/** TCX decision.
 * Check IF there is an attack in a subblock. Version FOR TCX Long/Short decision.
 * See TCheckSubblocksForAttack_fx FOR definition of parameters.
@@ -206,7 +207,7 @@ static void GetAttackForTCXDecision_fx(
        move16();
        bIsAttackPresent = TRUE;
#ifdef HARMONIZE_2508_InitTransientDetection
        if ( GT_32( element_mode, EVS_MONO ) )
        if ( GT_16( element_mode, EVS_MONO ) )
        {
            attackIndex = 0;
            move16();
@@ -348,6 +349,7 @@ static void InitTCXTransientDetector(
    TransientDetector *pTransientDetector )
{
    InitTransientDetector_fx( pSubblockEnergies, nDelay, NSUBBLOCKS, GetAttackForTCXDecision, 17408 /*8.5f/(1<<ATTACKTHRESHOLD_E) Q15*/, pTransientDetector );

    return;
}
#endif
@@ -399,6 +401,7 @@ void InitTransientDetection_ivas_fx(
    /* Init the delay buffer. */
    InitDelayBuffer( nFrameLength, nTCXDelay, &hTranDet->delayBuffer );


    /* Init a subblock energies buffer used for the TCX Short/Long decision. */
#ifdef HARMONIZE_2508_InitTransientDetection
    InitSubblockEnergies_fx( nFrameLength, nTCXDelay, &hTranDet->delayBuffer, &hTranDet->subblockEnergies, element_mode );