aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2025-05-17 19:04:07 +0200
committerDaniil Cherednik <dan.cherednik@gmail.com>2025-05-17 19:04:07 +0200
commit511e806e9e7fecc340e36f782ef5c89d56447109 (patch)
tree1f5836a9509b7f209248cb99091e6ecf172559e5 /src
parentc5ae2cec2c8308f96867e1620f0ec3a5c41395e4 (diff)
downloadatracdenc-511e806e9e7fecc340e36f782ef5c89d56447109.tar.gz
[AT3P] Adjust level of residual processing
Diffstat (limited to 'src')
-rw-r--r--src/atrac/at3p/at3p.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/atrac/at3p/at3p.cpp b/src/atrac/at3p/at3p.cpp
index ceee283..c48c21c 100644
--- a/src/atrac/at3p/at3p.cpp
+++ b/src/atrac/at3p/at3p.cpp
@@ -126,7 +126,8 @@ EncodeFrame(const float* data, int channels)
//TODO: scale window
if (Settings.UseGha & TSettings::GHA_WRITE_RESIUDAL) {
for (size_t i = 0; i < 2048; i++) {
- tmp[i] = x[i] / 32768.0;
+ //TODO: find why we need to add the 0.5db
+ tmp[i] = x[i] / (32768.0 / 1.122018);
}
} else {
for (size_t i = 0; i < 2048; i++) {