diff options
Diffstat (limited to 'audio/softsynth/mt32/LegacyWaveGenerator.cpp')
-rw-r--r-- | audio/softsynth/mt32/LegacyWaveGenerator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/softsynth/mt32/LegacyWaveGenerator.cpp b/audio/softsynth/mt32/LegacyWaveGenerator.cpp index 139c89295f..d315fb431b 100644 --- a/audio/softsynth/mt32/LegacyWaveGenerator.cpp +++ b/audio/softsynth/mt32/LegacyWaveGenerator.cpp @@ -172,7 +172,7 @@ float LA32WaveGenerator::generateNextSample(const Bit32u ampVal, const Bit16u pi // Correct resAmp for cutoff in range 50..66 if ((cutoffVal >= 128.0f) && (cutoffVal < 144.0f)) { - resAmp *= sinf(FLOAT_PI * (cutoffVal - 128.0f) / 32.0f); + resAmp *= sin(FLOAT_PI * (cutoffVal - 128.0f) / 32.0f); } // Produce filtered square wave with 2 cosine waves on slopes @@ -222,7 +222,7 @@ float LA32WaveGenerator::generateNextSample(const Bit32u ampVal, const Bit16u pi } // Resonance sine WG - resSample *= sinf(FLOAT_PI * relWavePos / cosineLen); + resSample *= sin(FLOAT_PI * relWavePos / cosineLen); // Resonance sine amp float resAmpFadeLog2 = -0.125f * resAmpDecayFactor * (relWavePos / cosineLen); // seems to be exact @@ -243,7 +243,7 @@ float LA32WaveGenerator::generateNextSample(const Bit32u ampVal, const Bit16u pi // To ensure the output wave has no breaks, two different windows are appied to the beginning and the ending of the resonance sine segment if (relWavePos < 0.5f * cosineLen) { - float syncSine = sinf(FLOAT_PI * relWavePos / cosineLen); + float syncSine = sin(FLOAT_PI * relWavePos / cosineLen); if (relWavePos < 0.0f) { // The window is synchronous square sine here resAmpFade *= syncSine * syncSine; |