aboutsummaryrefslogtreecommitdiffstats
path: root/src/TII.cpp
diff options
context:
space:
mode:
authorSergiy G <piratfm@gmail.com>2017-10-31 13:38:00 +0200
committerSergiy G <piratfm@gmail.com>2017-10-31 13:38:00 +0200
commit5dc40e77349e450299d3d7e3228023761840cbc3 (patch)
tree7618eb7f252d18a07f2badec333f0a035f524984 /src/TII.cpp
parent1c5372335338962ccbe9e876467b7e0ea46877ac (diff)
downloaddabmod-5dc40e77349e450299d3d7e3228023761840cbc3.tar.gz
dabmod-5dc40e77349e450299d3d7e3228023761840cbc3.tar.bz2
dabmod-5dc40e77349e450299d3d7e3228023761840cbc3.zip
Attenuate TII by 16dB as requested by spec
Diffstat (limited to 'src/TII.cpp')
-rw-r--r--src/TII.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TII.cpp b/src/TII.cpp
index 8a8bd86..4ed1a91 100644
--- a/src/TII.cpp
+++ b/src/TII.cpp
@@ -202,11 +202,11 @@ int TII::process(Buffer* dataIn, Buffer* dataOut)
// setting exactly the same phase of the signal for lower adjacent
// frequency
if (m_enabled_carriers[i]) {
- out[i] = m_conf.old_variant ? in[i+1] : in[i];
+ out[i] = (m_conf.old_variant ? in[i+1] : in[i])/((float)48.0);
}
if (m_enabled_carriers[i+1]) {
- out[i+1] = in[i+1];
+ out[i+1] = in[i+1]/((float)48.0);
}
}
}