This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
snakeinabox/Assets/Oculus/Platform/Scripts/VoipPCMSourceNative.cs
2020-07-09 11:41:01 -07:00

27 lines
525 B
C#

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