mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-18 03:36:22 +02:00
Fix incorrect scale factor for converting int16_t to/from float
This commit is contained in:
parent
cb1b70820a
commit
5045f8558e
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ public:
|
|||
return;
|
||||
}
|
||||
|
||||
const int scale = (2 << ((8 * sizeof(int16_t)) - 1));
|
||||
const int scale = (1 << ((8 * sizeof(int16_t)) - 1));
|
||||
|
||||
// de-interleave and convert int16_t to float32 (normalized to -1. ... 1.)
|
||||
for (uint32_t i = 0; i < frameCount; ++i) {
|
||||
|
|
Loading…
Reference in a new issue