Lines Matching refs:sineData
320 SineThreadedData_t *sineData = (SineThreadedData_t *) userData; in SimplePlayerDataCallbackProc() local
323 if (!sineData->sweepSetup && sineData->framesTotal >= sineData->prefixToneFrames) { in SimplePlayerDataCallbackProc()
324 sineData->setupSineSweeps(); in SimplePlayerDataCallbackProc()
327 if (sineData->hangTimeMSec > 0) { in SimplePlayerDataCallbackProc()
328 if (sineData->framesTotal > sineData->nextFrameToGlitch) { in SimplePlayerDataCallbackProc()
329 usleep(sineData->hangTimeMSec * 1000); in SimplePlayerDataCallbackProc()
331 (long long) sineData->framesTotal, in SimplePlayerDataCallbackProc()
332 sineData->hangTimeMSec); in SimplePlayerDataCallbackProc()
333 sineData->nextFrameToGlitch += FORCED_UNDERRUN_PERIOD_FRAMES; in SimplePlayerDataCallbackProc()
337 if (!sineData->schedulerChecked) { in SimplePlayerDataCallbackProc()
338 sineData->scheduler = sched_getscheduler(gettid()); in SimplePlayerDataCallbackProc()
339 sineData->schedulerChecked = true; in SimplePlayerDataCallbackProc()
342 if (sineData->timestampCount < MAX_TIMESTAMPS) { in SimplePlayerDataCallbackProc()
343 Timestamp *timestamp = &sineData->timestamps[sineData->timestampCount]; in SimplePlayerDataCallbackProc()
347 (sineData->timestampCount == 0 || // first one? in SimplePlayerDataCallbackProc()
349 sineData->timestampCount++; // keep this one in SimplePlayerDataCallbackProc()
353 if (numFrames > sineData->maxNumFrames) { in SimplePlayerDataCallbackProc()
354 sineData->maxNumFrames = numFrames; in SimplePlayerDataCallbackProc()
356 if (numFrames < sineData->minNumFrames) { in SimplePlayerDataCallbackProc()
357 sineData->minNumFrames = numFrames; in SimplePlayerDataCallbackProc()
367 sineData->sineOscillators[i].render(&audioBuffer[i], in SimplePlayerDataCallbackProc()
375 sineData->sineOscillators[i].render(&audioBuffer[i], in SimplePlayerDataCallbackProc()
384 sineData->sineOscillators[i].render24(&audioBuffer[i * bytesPerSample], in SimplePlayerDataCallbackProc()
392 sineData->sineOscillators[i].render(&audioBuffer[i], in SimplePlayerDataCallbackProc()
401 sineData->callbackCount++; in SimplePlayerDataCallbackProc()
402 sineData->framesTotal += numFrames; in SimplePlayerDataCallbackProc()
415 SineThreadedData_t *sineData = (SineThreadedData_t *) userData; in SimplePlayerErrorCallbackProc() local
416 android::status_t ret = sineData->waker.wake(error); in SimplePlayerErrorCallbackProc()