ref: 6a9f2cc1ff69d00699dd9f4db4ce1133774d39a0
parent: 620401b6717c34b3052981561426e747828ea7c6
parent: 078da6ccf77e4153b526603432d57a994c1a0ed6
author: Gabriel Ravier <gabravier@gmail.com>
date: Fri Jun 14 14:11:05 EDT 2019
Merge branch 'master' of https://github.com/Clownacy/Cave-Story-Engine-2
--- 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