diff options
author | Max Horn | 2007-11-19 12:44:54 +0000 |
---|---|---|
committer | Max Horn | 2007-11-19 12:44:54 +0000 |
commit | 2a339d8ea3deb7b8ef28224ada00c1180bc260e3 (patch) | |
tree | 01eeaa1fabb1a561ecf51ca41f68680a0c06f0a4 /sound/softsynth | |
parent | 24d1eff8e4d4b3c049df93e834a26b6ec15a9160 (diff) | |
download | scummvm-rg350-2a339d8ea3deb7b8ef28224ada00c1180bc260e3.tar.gz scummvm-rg350-2a339d8ea3deb7b8ef28224ada00c1180bc260e3.tar.bz2 scummvm-rg350-2a339d8ea3deb7b8ef28224ada00c1180bc260e3.zip |
Don't use M_PI, rather use our very own PI constant
svn-id: r29567
Diffstat (limited to 'sound/softsynth')
-rw-r--r-- | sound/softsynth/pcspk.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/softsynth/pcspk.cpp b/sound/softsynth/pcspk.cpp index 18bd1ceb5f..dea3eac549 100644 --- a/sound/softsynth/pcspk.cpp +++ b/sound/softsynth/pcspk.cpp @@ -25,10 +25,6 @@ #include "sound/softsynth/pcspk.h" -#ifndef M_PI -#define M_PI 3.14159265358979323846 -#endif - namespace Audio { const PCSpeaker::generatorFunc PCSpeaker::generateWave[] = @@ -108,7 +104,7 @@ int8 PCSpeaker::generateSine(uint32 x, uint32 oscLength) { return 0; // TODO: Maybe using a look-up-table would be better? - return CLIP<int16>((int16) (128 * sin(2.0 * M_PI * x / oscLength)), -128, 127); + return CLIP<int16>((int16) (128 * sin(2.0 * PI * x / oscLength)), -128, 127); } int8 PCSpeaker::generateSaw(uint32 x, uint32 oscLength) { |