ref: 078da6ccf77e4153b526603432d57a994c1a0ed6
parent: 75f585a72736822c24b1ef63f2920844c0d4d07c
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri Jun 14 13:06:42 EDT 2019
Correct fmod usage
--- 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