shithub: cstory

Download patch

ref: d0defa4a7b5cdf500e20ee5abf34d13593cfd74a
parent: 638e96be11c8df3cb1551553e8be843ac3a3a459
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Jan 29 17:15:53 EST 2020

This cast shouldn't be necessary

--- a/src/Backends/Audio/SDL2.cpp
+++ b/src/Backends/Audio/SDL2.cpp
@@ -91,7 +91,7 @@
 				const float sample2 = (sound->samples[(size_t)sound->position + 1] - 128.0f) / 128.0f;
 
 				// Perform linear interpolation
-				const float interpolated_sample = sample1 + ((sample2 - sample1) * (float)fmod((float)sound->position, 1.0f));
+				const float interpolated_sample = sample1 + ((sample2 - sample1) * fmod((float)sound->position, 1.0f));
 
 				*steam_pointer++ += interpolated_sample * sound->volume_l;
 				*steam_pointer++ += interpolated_sample * sound->volume_r;
--