diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2017-08-06 00:28:18 +0300 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2017-10-17 01:08:53 +0300 |
commit | 43e508b0b607054d2a720e8d9c3a11947d6f798d (patch) | |
tree | c9d70e031a21ec9dcf45ab1d18727f267724c30f /src/transient_detector.cpp | |
parent | fcb5986d9d21d923db2480be5089168fc1d1fcd2 (diff) | |
download | atracdenc-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.cpp | 2 |
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) { |