This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

ovr_Voip_GetSyncTimestamp

Returns a timestamp used for synchronizing audio samples sent to the given user with an external data stream.

Timestamps associated with audio frames are implicitly transmitted to remote peers; on the receiving side, they can be obtained by using ovr_Voip_GetPCMWithTimestamp(). ovr_Voip_GetPCMWithTimestamp() is used to fetch those timestamps on the sending side -- an application can insert the value returned by this function into each data packet and compare it to the value returned by GetPCMWithTimestamp() on the receiving side in order to determine the ordering of two events (sampling audio and composing a data packet).

Note: the timestamp is generated by an unspecified clock; it's doesn't generally represent wall-clock time. Use ovr_Voip_GetSyncTimestampDifference() to convert the difference between two timestamps to microseconds.

This function assumes that a voice connection to the user already exists; it returns 0 if that isn't the case.

This function returns a uint32_t

Parameters

ParameterDescription

userID

Type: ovrID