diff options
author | md5 | 2011-03-19 02:30:32 +0200 |
---|---|---|
committer | md5 | 2011-03-19 02:30:32 +0200 |
commit | a6aacc73e2dc00b6cdeaa5ec08e07b9b285b2fb6 (patch) | |
tree | a58ac00eb954c435714b6595588146295eb621a7 /audio/softsynth/fmtowns_pc98 | |
parent | 334e1cd675d01a92046bb7296c97394d4daabe99 (diff) | |
download | scummvm-rg350-a6aacc73e2dc00b6cdeaa5ec08e07b9b285b2fb6.tar.gz scummvm-rg350-a6aacc73e2dc00b6cdeaa5ec08e07b9b285b2fb6.tar.bz2 scummvm-rg350-a6aacc73e2dc00b6cdeaa5ec08e07b9b285b2fb6.zip |
AUDIO: Changed several places that use PI to use M_PI instead
Diffstat (limited to 'audio/softsynth/fmtowns_pc98')
-rw-r--r-- | audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp b/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp index f84fd841a6..67de8fa026 100644 --- a/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp +++ b/audio/softsynth/fmtowns_pc98/towns_pc98_fmsynth.cpp @@ -1253,7 +1253,7 @@ void TownsPC98_FmSynth::generateTables() { delete[] _oprSinTbl; _oprSinTbl = new uint32[1024]; for (int i = 0; i < 1024; i++) { - double val = sin((double)(((i << 1) + 1) * PI / 1024.0)); + double val = sin((double)(((i << 1) + 1) * M_PI / 1024.0)); double d_dcb = log(1.0 / (double)ABS(val)) / log(2.0) * 256.0; int32 i_dcb = (int32)(2.0 * d_dcb); i_dcb = (i_dcb & 1) ? (i_dcb >> 1) + 1 : (i_dcb >> 1); |