Home
last modified time | relevance | path

Searched refs:sampleInt32 (Results 1 – 1 of 1) sorted by relevance

/external/webrtc/webrtc/modules/audio_device/mac/
Daudio_device_mac.cc2637 SInt32 sampleInt32 = 0; in RenderWorkerThread() local
2639 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()