aboutsummaryrefslogtreecommitdiff
path: root/test/audio
diff options
context:
space:
mode:
authordhewg2011-03-19 11:24:06 +0100
committerdhewg2011-03-19 11:24:06 +0100
commit2def212de75b3885738c4db188f0a42b712bd48f (patch)
tree03657dca73b120b0e80c73346dac1e47ec543d6a /test/audio
parenta4c05b1632940b3f2003055e0c64970b4b053f32 (diff)
downloadscummvm-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/audio')
-rw-r--r--test/audio/helper.h2
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;
}