summaryrefslogtreecommitdiffstats
path: root/media/tests/audiotests/shared_mem_test.h
blob: f4959557b0b57d40ed403696d56fcf8bb31bc40b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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_*/