From 7880323590ae8b962e2dff776ce11d437b25734d Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 3 Mar 2013 22:59:33 +0200 Subject: MT-32: Also replace cosf() (C99) with cos() --- audio/softsynth/mt32/LegacyWaveGenerator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'audio/softsynth') diff --git a/audio/softsynth/mt32/LegacyWaveGenerator.cpp b/audio/softsynth/mt32/LegacyWaveGenerator.cpp index d315fb431b..35ca975018 100644 --- a/audio/softsynth/mt32/LegacyWaveGenerator.cpp +++ b/audio/softsynth/mt32/LegacyWaveGenerator.cpp @@ -179,7 +179,7 @@ float LA32WaveGenerator::generateNextSample(const Bit32u ampVal, const Bit16u pi // 1st cosine segment if (relWavePos < cosineLen) { - sample = -cosf(FLOAT_PI * relWavePos / cosineLen); + sample = -cos(FLOAT_PI * relWavePos / cosineLen); } else // high linear segment @@ -189,7 +189,7 @@ float LA32WaveGenerator::generateNextSample(const Bit32u ampVal, const Bit16u pi // 2nd cosine segment if (relWavePos < (2 * cosineLen + hLen)) { - sample = cosf(FLOAT_PI * (relWavePos - (cosineLen + hLen)) / cosineLen); + sample = cos(FLOAT_PI * (relWavePos - (cosineLen + hLen)) / cosineLen); } else { // low linear segment @@ -258,7 +258,7 @@ float LA32WaveGenerator::generateNextSample(const Bit32u ampVal, const Bit16u pi // sawtooth waves if (sawtoothWaveform) { - sample *= cosf(FLOAT_2PI * wavePos / waveLen); + sample *= cos(FLOAT_2PI * wavePos / waveLen); } wavePos++; -- cgit v1.2.3