Initialer Upload neues Unity-Projekt
This commit is contained in:
30
Assets/Oculus/Platform/Scripts/VoipPCMSourceNative.cs
Normal file
30
Assets/Oculus/Platform/Scripts/VoipPCMSourceNative.cs
Normal file
@ -0,0 +1,30 @@
|
||||
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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user