1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
586 B

// Copyright 2008 The Android Open Source Project
#ifndef AUDIOTRACKTEST_H_
#define AUDIOTRACKTEST_H_
namespace android {
class AudioTrackTest{
public:
AudioTrackTest(void);
~AudioTrackTest() {};
void Execute(void);
int Test01();
void Generate(short *buffer, long bufferSz, long amplitude, unsigned long &phi, long dPhi);
void InitSine();
short ComputeSine(long amplitude, long phi);
#define SIN_SZ 1024
short sin1024[SIN_SZ]; // sine table 2*pi = 1024
};
};
#endif /*AUDIOTRACKTEST_H_*/