Merge pull request #356 from Raulshc/modulator_fix

EFX: Modulator fix
This commit is contained in:
kcat
2019-11-09 06:58:29 -08:00
committed by GitHub
+1 -1
View File
@@ -52,7 +52,7 @@ inline float Saw(ALuint index)
{ return static_cast<float>(index)*(2.0f/WAVEFORM_FRACONE) - 1.0f; }
inline float Square(ALuint index)
{ return static_cast<float>(((index>>(WAVEFORM_FRACBITS-2))&2) - 1); }
{ return static_cast<float>(static_cast<int>((index>>(WAVEFORM_FRACBITS-2))&2) - 1); }
inline float One(ALuint) { return 1.0f; }