diff options
author | dhewg | 2011-03-19 11:24:06 +0100 |
---|---|---|
committer | dhewg | 2011-03-19 11:24:06 +0100 |
commit | 2def212de75b3885738c4db188f0a42b712bd48f (patch) | |
tree | 03657dca73b120b0e80c73346dac1e47ec543d6a /test | |
parent | a4c05b1632940b3f2003055e0c64970b4b053f32 (diff) | |
download | scummvm-rg350-2def212de75b3885738c4db188f0a42b712bd48f.tar.gz scummvm-rg350-2def212de75b3885738c4db188f0a42b712bd48f.tar.bz2 scummvm-rg350-2def212de75b3885738c4db188f0a42b712bd48f.zip |
ALL: s/PI/M_PI/
Tip of the day: git grep -w PI
Diffstat (limited to 'test')
-rw-r--r-- | test/audio/helper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/audio/helper.h b/test/audio/helper.h index 262ca1c060..e0d034aaea 100644 --- a/test/audio/helper.h +++ b/test/audio/helper.h @@ -18,7 +18,7 @@ static T *createSine(const int sampleRate, const int time) { const T maxValue = std::numeric_limits<T>::max() ^ xorMask; for (int i = 0; i < time * sampleRate; ++i) - sine[i] = ((T)(sin((double)i / sampleRate * 2 * PI) * maxValue)) ^ xorMask; + sine[i] = ((T)(sin((double)i / sampleRate * 2 * M_PI) * maxValue)) ^ xorMask; return sine; } |