Home
last modified time | relevance | path

Searched refs:phi (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/media/tests/audiotests/
H A Dshared_mem_test.cpp78 unsigned long phi; in Test01() local
87 phi = 0; in Test01()
88 Generate(smpBuf, BUF_SZ, amplitude, phi, dPhi); // fill buffer in Test01()
138 buffer[i0] = ComputeSine( amplitude, phi); in Generate()
139 phi += dPhi; in Generate()
149 short AudioTrackTest::ComputeSine(long amplitude, long phi) in ComputeSine() argument
155 sample = (amplitude*sin1024[(phi>>22) & 0x3ff]) >> 15; in ComputeSine()
157 l0 = (phi>>12) & 0x3ff; // 2^20 * x / (2*pi) in ComputeSine()
173 double phi = 0; in InitSine() local
178 d0 = 32768. * sin(phi); in InitSine()
[all …]
H A Dshared_mem_test.h16 void Generate(short *buffer, long bufferSz, long amplitude, unsigned long &phi, long dPhi);
18 short ComputeSine(long amplitude, long phi);