Home
last modified time | relevance | path

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

/cts/tests/tests/media/libndkaudio/
DWaveTableOscillator.cpp67 int srcIndex = (int) srcPhase_; in getData() local
68 float delta0 = srcPhase_ - srcIndex; in getData()
70 outBuff[dstIndex] = ((waveTable_[srcIndex] * delta1) in getData()
71 + (waveTable_[srcIndex + 1] * delta0)) / 2.0f; in getData()
85 int srcIndex = (int) srcPhase_; in getData() local
86 float delta0 = srcPhase_ - srcIndex; in getData()
88 float out = ((waveTable_[srcIndex] * delta1) in getData()
89 + (waveTable_[srcIndex + 1] * delta0)) / 2.0f; in getData()
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/sources/
DWaveTableSource.java123 int srcIndex = (int)mSrcPhase; in pull() local
124 float delta0 = mSrcPhase - (float)srcIndex; in pull()
126 float value = ((mWaveTbl[srcIndex] * delta0) + (mWaveTbl[srcIndex + 1] * delta1)); in pull()