aboutsummaryrefslogtreecommitdiffstats
path: root/src/transient_detector.cpp
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2017-08-06 00:28:18 +0300
committerDaniil Cherednik <dan.cherednik@gmail.com>2017-10-17 01:08:53 +0300
commit43e508b0b607054d2a720e8d9c3a11947d6f798d (patch)
treec9d70e031a21ec9dcf45ab1d18727f267724c30f /src/transient_detector.cpp
parentfcb5986d9d21d923db2480be5089168fc1d1fcd2 (diff)
downloadatracdenc-43e508b0b607054d2a720e8d9c3a11947d6f798d.tar.gz
Simplest gain control - scale first part of frame if the attack transient was detected
Diffstat (limited to 'src/transient_detector.cpp')
-rw-r--r--src/transient_detector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transient_detector.cpp b/src/transient_detector.cpp
index 8059e8c..660b776 100644
--- a/src/transient_detector.cpp
+++ b/src/transient_detector.cpp
@@ -42,7 +42,7 @@ static TFloat calculatePeak(const TFloat* in, uint32_t n) {
if (absVal > s)
s = absVal;
}
- return s;
+ return s;
}
void TTransientDetector::HPFilter(const TFloat* in, TFloat* out) {