API reference

IVoipPCMSource Interface

This is the interface for VoipPCMSource subclasses to implement which represent a PCM(pulse code modulation) object. An example class that implements this interface is VoipPCMSourceNative. Read more about Voiphere.

Methods

GetPCM ( dest , length )
Retrieves the PCM float as an int.
Signature
int Oculus.Platform.IVoipPCMSource.GetPCM(float[] dest, int length)
Parameters
dest: float []
length: int
Returns
int
PeekSizeElements ()
Uses the sender ID and will return an int that represents the size of the current PCM data stack.
Signature
int Oculus.Platform.IVoipPCMSource.PeekSizeElements()
Returns
int
SetSenderID ( senderID )
Sets the sender ID associated with this Voip source. The ID will belong to a Models.User.
Signature
void Oculus.Platform.IVoipPCMSource.SetSenderID(ulong senderID)
Parameters
senderID: ulong
Returns
void
Update ()
Updates the Voip PCM source.
Signature
void Oculus.Platform.IVoipPCMSource.Update()
Returns
void