Searched refs:lpToneGen (Results 1 – 2 of 2) sorted by relevance
44 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz, in android_media_ToneGenerator_startTone() local46 if (lpToneGen == NULL) { in android_media_ToneGenerator_startTone()51 return lpToneGen->startTone((ToneGenerator::tone_type) toneType, durationMs); in android_media_ToneGenerator_startTone()57 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz, in android_media_ToneGenerator_stopTone() local60 ALOGV("ToneGenerator lpToneGen: %p", lpToneGen); in android_media_ToneGenerator_stopTone()61 if (lpToneGen == NULL) { in android_media_ToneGenerator_stopTone()65 lpToneGen->stopTone(); in android_media_ToneGenerator_stopTone()69 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz, in android_media_ToneGenerator_getAudioSessionId() local71 if (lpToneGen == NULL) { in android_media_ToneGenerator_getAudioSessionId()75 return lpToneGen->getSessionId(); in android_media_ToneGenerator_getAudioSessionId()[all …]
1298 ToneGenerator *lpToneGen = static_cast<ToneGenerator *>(user); in audioCallback() local1301 const ToneDescriptor *lpToneDesc = lpToneGen->mpToneDesc; in audioCallback()1310 … unsigned int lReqSmp = lNumSmp < lpToneGen->mProcessSize*2 ? lNumSmp : lpToneGen->mProcessSize; in audioCallback()1315 lpToneGen->mLock.lock(); in audioCallback()1319 lpToneGen->mTotalSmp += lReqSmp; in audioCallback()1322 switch (lpToneGen->mState) { in audioCallback()1336 lpToneGen->mNextSegSmp = TONEGEN_INF; // forced to skip state machine management below in audioCallback()1347 if (lpToneDesc->segments[lpToneGen->mCurSegment].duration == 0 || in audioCallback()1348 lpToneGen->mTotalSmp > lpToneGen->mMaxSmp) { in audioCallback()1349 if (lpToneGen->mState == TONE_PLAYING) { in audioCallback()[all …]