Lines Matching refs:mCurSegment
1379 if (lpToneDesc->segments[lpToneGen->mCurSegment].duration == 0 || in audioCallback()
1384 if (lpToneDesc->segments[lpToneGen->mCurSegment].duration == 0) { in audioCallback()
1400 if (lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[0] != 0) { in audioCallback()
1403 … uint16_t lFrequency = lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[lFreqIdx]; in audioCallback()
1408 lFrequency = lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[++lFreqIdx]; in audioCallback()
1414 if (lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt) { in audioCallback()
1415 … if (lpToneGen->mLoopCounter < lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt) { in audioCallback()
1417 lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt, in audioCallback()
1419 lpToneGen->mCurSegment); in audioCallback()
1420 lpToneGen->mCurSegment = lpToneDesc->segments[lpToneGen->mCurSegment].loopIndx; in audioCallback()
1425 lpToneGen->mCurSegment++; in audioCallback()
1427 lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt, in audioCallback()
1429 lpToneGen->mCurSegment); in audioCallback()
1432 lpToneGen->mCurSegment++; in audioCallback()
1434 lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt, in audioCallback()
1436 lpToneGen->mCurSegment); in audioCallback()
1441 if (lpToneDesc->segments[lpToneGen->mCurSegment].duration == 0) { in audioCallback()
1442 ALOGV("Last Seg: %d", lpToneGen->mCurSegment); in audioCallback()
1448 lpToneGen->mCurSegment = lpToneDesc->repeatSegment; in audioCallback()
1453 ALOGV("New segment %d, Next Time: %lld", lpToneGen->mCurSegment, in audioCallback()
1462 ALOGV("New segment %d, Next Time: %lld", lpToneGen->mCurSegment, in audioCallback()
1465 if (lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[0] != 0) { in audioCallback()
1477 … += (lpToneDesc->segments[lpToneGen->mCurSegment].duration * lpToneGen->mSamplingRate) / 1000; in audioCallback()
1481 if (lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[0] == 0) { in audioCallback()
1491 uint16_t lFrequency = lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[lFreqIdx]; in audioCallback()
1496 lFrequency = lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[++lFreqIdx]; in audioCallback()
1617 mCurSegment = 0; in prepareWave()