aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorChris Apers2004-10-06 10:14:31 +0000
committerChris Apers2004-10-06 10:14:31 +0000
commit2ca4529bbad0f92f1567309ec68281f19ed57c13 (patch)
tree3129303adcfbad785c710bd3f303d1519b0f46b9 /backends
parentd76a37588946865bdcc6fad49e9118ed8d07ea30 (diff)
downloadscummvm-rg350-2ca4529bbad0f92f1567309ec68281f19ed57c13.tar.gz
scummvm-rg350-2ca4529bbad0f92f1567309ec68281f19ed57c13.tar.bz2
scummvm-rg350-2ca4529bbad0f92f1567309ec68281f19ed57c13.zip
Use common PI value instead
svn-id: r15435
Diffstat (limited to 'backends')
-rw-r--r--backends/midi/ym2612.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/backends/midi/ym2612.cpp b/backends/midi/ym2612.cpp
index c6fe5bb646..3a5b1e1cab 100644
--- a/backends/midi/ym2612.cpp
+++ b/backends/midi/ym2612.cpp
@@ -864,13 +864,12 @@ void MidiDriver_YM2612::rate(uint16 r)
_channel[i]->rate(r);
}
-#define M_PI 3.14159265358979323846
void MidiDriver_YM2612::createLookupTables() {
{
int i;
sintbl = new int [2048];
for (i = 0; i < 2048; i++)
- sintbl[i] = (int)(0xffff * sin(i/2048.0*2.0*M_PI));
+ sintbl[i] = (int)(0xffff * sin(i/2048.0*2.0*PI));
}
{