Lines Matching refs:lpToneDesc
1301 const ToneDescriptor *lpToneDesc = lpToneGen->mpToneDesc; in audioCallback() local
1347 if (lpToneDesc->segments[lpToneGen->mCurSegment].duration == 0 || in audioCallback()
1352 if (lpToneDesc->segments[lpToneGen->mCurSegment].duration == 0) { in audioCallback()
1368 if (lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[0] != 0) { in audioCallback()
1371 … uint16_t lFrequency = lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[lFreqIdx]; in audioCallback()
1376 lFrequency = lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[++lFreqIdx]; in audioCallback()
1382 if (lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt) { in audioCallback()
1383 … if (lpToneGen->mLoopCounter < lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt) { in audioCallback()
1385 lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt, in audioCallback()
1388 lpToneGen->mCurSegment = lpToneDesc->segments[lpToneGen->mCurSegment].loopIndx; in audioCallback()
1395 lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt, in audioCallback()
1402 lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt, in audioCallback()
1409 if (lpToneDesc->segments[lpToneGen->mCurSegment].duration == 0) { in audioCallback()
1413 if (++lpToneGen->mCurCount <= lpToneDesc->repeatCnt) { in audioCallback()
1416 lpToneGen->mCurSegment = lpToneDesc->repeatSegment; in audioCallback()
1417 if (lpToneDesc->segments[lpToneDesc->repeatSegment].waveFreq[0] != 0) { in audioCallback()
1433 if (lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[0] != 0) { in audioCallback()
1445 … += (lpToneDesc->segments[lpToneGen->mCurSegment].duration * lpToneGen->mSamplingRate) / 1000; in audioCallback()
1449 if (lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[0] == 0) { in audioCallback()
1459 uint16_t lFrequency = lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[lFreqIdx]; in audioCallback()
1464 lFrequency = lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[++lFreqIdx]; in audioCallback()
1482 lpToneDesc = lpToneGen->mpToneDesc; in audioCallback()