diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2017-10-29 00:41:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2017-10-29 00:41:37 +0300 |
commit | aad450378e603dfaa2b4de6496199b03d483056e (patch) | |
tree | 37e606631b9fdef0ca7f920cde4b8f0ff4d01ec3 /src | |
parent | bcb2238b2d3c75288c9c6e28ea5b54d17b9ce721 (diff) | |
download | atracdenc-aad450378e603dfaa2b4de6496199b03d483056e.tar.gz |
Do not apply gain control if release in current frame was detected -
right now we can't do it.
Diffstat (limited to 'src')
-rw-r--r-- | src/atrac3denc.cpp | 2 |
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; |