Home | History | Annotate | Download | only in libmedia

Lines Matching refs:mCurSegment

1165         if (lpToneDesc->segments[lpToneGen->mCurSegment].duration == 0 ||
1170 if (lpToneDesc->segments[lpToneGen->mCurSegment].duration == 0) {
1186 if (lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[0] != 0) {
1189 unsigned short lFrequency = lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[lFreqIdx];
1194 lFrequency = lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[++lFreqIdx];
1200 if (lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt) {
1201 if (lpToneGen->mLoopCounter < lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt) {
1203 lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt,
1205 lpToneGen->mCurSegment);
1206 lpToneGen->mCurSegment = lpToneDesc->segments[lpToneGen->mCurSegment].loopIndx;
1211 lpToneGen->mCurSegment++;
1213 lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt,
1215 lpToneGen->mCurSegment);
1218 lpToneGen->mCurSegment++;
1220 lpToneDesc->segments[lpToneGen->mCurSegment].loopCnt,
1222 lpToneGen->mCurSegment);
1227 if (lpToneDesc->segments[lpToneGen->mCurSegment].duration == 0) {
1228 ALOGV("Last Seg: %d", lpToneGen->mCurSegment);
1234 lpToneGen->mCurSegment = lpToneDesc->repeatSegment;
1239 ALOGV("New segment %d, Next Time: %d", lpToneGen->mCurSegment,
1247 mCurSegment,
1249 if (lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[0] != 0) {
1261 += (lpToneDesc->segments[lpToneGen->mCurSegment].duration * lpToneGen->mSamplingRate) / 1000;
1265 if (lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[0] == 0) {
1275 unsigned short lFrequency = lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[lFreqIdx];
1280 lFrequency = lpToneDesc->segments[lpToneGen->mCurSegment].waveFreq[++lFreqIdx];
1401 mCurSegment = 0;