1 // Copyright 2008 The Android Open Source Project 2 3 #ifndef AUDIOTRACKTEST_H_ 4 #define AUDIOTRACKTEST_H_ 5 6 namespace android { 7 8 class AudioTrackTest{ 9 public: 10 AudioTrackTest(void); ~AudioTrackTest()11 ~AudioTrackTest() {}; 12 13 void Execute(void); 14 int Test01(); 15 16 void Generate(short *buffer, long bufferSz, long amplitude, unsigned long &phi, long dPhi); 17 void InitSine(); 18 short ComputeSine(long amplitude, long phi); 19 20 #define SIN_SZ 1024 21 short sin1024[SIN_SZ]; // sine table 2*pi = 1024 22 }; 23 24 }; 25 26 27 #endif /*AUDIOTRACKTEST_H_*/ 28