aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorFilippos Karapetis2013-03-03 22:59:33 +0200
committerFilippos Karapetis2013-03-03 22:59:33 +0200
commit7880323590ae8b962e2dff776ce11d437b25734d (patch)
tree9681a50accc5a61c3a2f12babceef4036ff10d88 /audio
parentbb7930cf9c0adf8e64b1245655ada2ec1d5910ef (diff)
downloadscummvm-rg350-7880323590ae8b962e2dff776ce11d437b25734d.tar.gz
scummvm-rg350-7880323590ae8b962e2dff776ce11d437b25734d.tar.bz2
scummvm-rg350-7880323590ae8b962e2dff776ce11d437b25734d.zip
MT-32: Also replace cosf() (C99) with cos()
Diffstat (limited to 'audio')
-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++;