Lines Matching refs:attack
116 unsigned int attack, release; in pcmLimiter_Create() local
121 attack = (unsigned int)(maxAttackMs * maxSampleRate / 1000); in pcmLimiter_Create()
129 limiter->maxBuf = (FIXP_DBL*)FDKcalloc(attack + 1, sizeof(FIXP_DBL)); in pcmLimiter_Create()
131 (FIXP_DBL*)FDKcalloc(attack * maxChannels, sizeof(FIXP_DBL)); in pcmLimiter_Create()
139 exponent = invFixp(attack + 1); in pcmLimiter_Create()
152 limiter->attack = attack; in pcmLimiter_Create()
185 unsigned int attack = limiter->attack; in pcmLimiter_Apply() local
266 for (j = 1; j <= attack; j++) { in pcmLimiter_Apply()
271 if (maxBufIdx >= attack + 1) maxBufIdx = 0; in pcmLimiter_Apply()
337 if (delayBufIdx >= attack) { in pcmLimiter_Apply()
395 FDKmemset(limiter->maxBuf, 0, (limiter->attack + 1) * sizeof(FIXP_DBL)); in pcmLimiter_Reset()
397 limiter->attack * limiter->channels * sizeof(FIXP_DBL)); in pcmLimiter_Reset()
421 return limiter->attack; in pcmLimiter_GetDelay()
456 unsigned int attack, release; in pcmLimiter_SetSampleRate() local
465 attack = (unsigned int)(limiter->attackMs * sampleRate / 1000); in pcmLimiter_SetSampleRate()
469 exponent = invFixp(attack + 1); in pcmLimiter_SetSampleRate()
478 limiter->attack = attack; in pcmLimiter_SetSampleRate()
492 unsigned int attack; in pcmLimiter_SetAttack() local
501 attack = (unsigned int)(attackMs * limiter->sampleRate / 1000); in pcmLimiter_SetAttack()
504 exponent = invFixp(attack + 1); in pcmLimiter_SetAttack()
508 limiter->attack = attack; in pcmLimiter_SetAttack()