Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
525 B

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() { }
}
}