Searched refs:sampleInt32 (Results 1 – 1 of 1) sorted by relevance
2637 SInt32 sampleInt32 = 0; in RenderWorkerThread() local2639 sampleInt32 = pPlayBuffer[sampleIdx]; in RenderWorkerThread()2640 sampleInt32 += pPlayBuffer[sampleIdx + 1]; in RenderWorkerThread()2641 sampleInt32 /= 2; in RenderWorkerThread()2643 if (sampleInt32 > 32767) { in RenderWorkerThread()2644 sampleInt32 = 32767; in RenderWorkerThread()2645 } else if (sampleInt32 < -32768) { in RenderWorkerThread()2646 sampleInt32 = -32768; in RenderWorkerThread()2650 pPlayBuffer[sampleIdx + 1] = static_cast<SInt16>(sampleInt32); in RenderWorkerThread()