mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Replace repeated division with multiply by inverse
This commit is contained in:
parent
5045f8558e
commit
ffe3fcf4ce
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ public:
|
|||
// de-interleave and convert int16_t to float32 (normalized to -1. ... 1.)
|
||||
for (uint32_t i = 0; i < frameCount; ++i) {
|
||||
for (uint32_t j = 0; j < _channelCount; ++j) {
|
||||
_buffer[j][i] = ((float)(*in++)) / scale;
|
||||
_buffer[j][i] = ((float)(*in++)) * (1.0f / scale);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue