Files
2026-02-21 16:45:37 +08:00

29 lines
481 B
C#

using System;
namespace Oculus.Platform
{
public class VoipPCMSourceNative : IVoipPCMSource
{
private ulong senderID;
public int GetPCM(float[] dest, int length)
{
return (int)(uint)CAPI.ovr_Voip_GetPCMFloat(senderID, dest, (UIntPtr)(ulong)length);
}
public void SetSenderID(ulong senderID)
{
this.senderID = senderID;
}
public int PeekSizeElements()
{
return (int)(uint)CAPI.ovr_Voip_GetPCMSize(senderID);
}
public void Update()
{
}
}
}