ref: 00fdea492f65cb5c05616232effe27884cc66b6b
parent: 16e66971d59b50c854fb9dbeffb893d29bb8129d
parent: 6a9f2cc1ff69d00699dd9f4db4ce1133774d39a0
author: Gabriel Ravier <gabravier@gmail.com>
date: Fri Jun 14 16:33:26 EDT 2019
Merge branch 'master' into feature/improveOToR
--- a/src/Sound.cpp
+++ b/src/Sound.cpp
@@ -169,7 +169,7 @@
const float sample2 = ((looping || (((size_t)samplePosition) + 1) < size) ? data[(((size_t)samplePosition) + 1) % size] : 128.0f);
//Interpolate sample
- const float subPos = (float)std::fmod(samplePosition, 1.0);
+ const float subPos = (float)fmod(samplePosition, 1.0);
const float sampleA = sample1 + (sample2 - sample1) * subPos;
//Convert sample to float32
@@ -186,7 +186,7 @@
{
if (looping)
{
- samplePosition = std::fmod(samplePosition, size);
+ samplePosition = fmod(samplePosition, size);
looped = true;
}
else