API reference
API reference
Select your platform
No SDKs available
No versions available

ovr_Voip_GetPCMFloat Function

Gets all available samples of voice data for the specified peer and copies it into outputBuffer. The voip system will generate data at roughly the rate of 480 samples per 10ms. This function should be called every frame with 50ms (2400 elements) of buffer size to account for frame rate variations. The data format is 32 bit floating point 48khz mono.
This function can be safely called from any thread.

Signature

size_t ovr_Voip_GetPCMFloat(ovrID senderID, float *outputBuffer, size_t outputBufferNumElements)

Parameters

senderID: ovrID
outputBuffer: float *
outputBufferNumElements: size_t

Returns

size_t