Searched refs:limiter_threshold (Results 1 – 1 of 1) sorted by relevance
160 float limiter_threshold = 0.0; in DCShift() local162 limiter_threshold = 1.0 - (std::abs(shift) - limiter_gain); in DCShift()164 if (*itr > limiter_threshold && shift > 0) { in DCShift()165 T peak = (*itr - limiter_threshold) * limiter_gain / (1 - limiter_threshold); in DCShift()166 T sample = (peak + limiter_threshold + shift); in DCShift()167 *itr = sample > limiter_threshold ? limiter_threshold : sample; in DCShift()168 } else if (*itr < -limiter_threshold && shift < 0) { in DCShift()169 T peak = (*itr + limiter_threshold) * limiter_gain / (1 - limiter_threshold); in DCShift()170 T sample = (peak + limiter_threshold + shift); in DCShift()171 *itr = sample < -limiter_threshold ? -limiter_threshold : sample; in DCShift()