aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2017-10-29 00:41:37 +0300
committerDaniil Cherednik <dan.cherednik@gmail.com>2017-10-29 00:41:37 +0300
commitaad450378e603dfaa2b4de6496199b03d483056e (patch)
tree37e606631b9fdef0ca7f920cde4b8f0ff4d01ec3
parentbcb2238b2d3c75288c9c6e28ea5b54d17b9ce721 (diff)
downloadatracdenc-aad450378e603dfaa2b4de6496199b03d483056e.tar.gz
Do not apply gain control if release in current frame was detected -
right now we can't do it.
-rw-r--r--src/atrac3denc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/atrac3denc.cpp b/src/atrac3denc.cpp
index cf45fab..f0894d5 100644
--- a/src/atrac3denc.cpp
+++ b/src/atrac3denc.cpp
@@ -302,7 +302,7 @@ void TAtrac3Processor::CreateSubbandInfo(TFloat* in[4],
auto transientParamHistory = GetTransientParamsHistory(channel, band);
if (transientParamHistory.Attack0Location == -1 && transientParamHistory.Attack1Location == -1 && transientParamHistory.ReleaseLocation == -1 &&
- transientParam.Attack0Location != -1 /*&& transientParam.Attack1Location == -1 && transientParam.ReleaseLocation == -1*/) {
+ transientParam.Attack0Location != -1 /*&& transientParam.Attack1Location == -1*/ && transientParam.ReleaseLocation == -1) {
// No transient at previous frame, but transient (attack) at border of first and second half - simplest way, just scale the first half.
//std::cout << "CASE 1: " << transientParam.Attack0Location << " " << transientParam.Attack0Relation << std::endl;