aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth
diff options
context:
space:
mode:
Diffstat (limited to 'audio/softsynth')
-rw-r--r--audio/softsynth/mt32/LegacyWaveGenerator.cpp6
1 files changed, 3 insertions, 3 deletions
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++;