BlueGit

blue-star ggj-2020

Files

ggj-2020 / Assets / Oculus / Platform / Scripts / VoipPCMSourceNative.cs

VoipPCMSourceNative.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
VoipPCMSourceNative.cs 525 B Download Raw
1using UnityEngine;
2using System.Collections;
3using System;
4
5namespace Oculus.Platform
6{
7 public class VoipPCMSourceNative : IVoipPCMSource
8 {
9 ulong senderID;
10
11 public int GetPCM(float[] dest, int length)
12 {
13 return (int)CAPI.ovr_Voip_GetPCMFloat(senderID, dest, (UIntPtr)length);
14 }
15
16 public void SetSenderID(ulong senderID)
17 {
18 this.senderID = senderID;
19 }
20
21 public int PeekSizeElements() {
22 return (int)CAPI.ovr_Voip_GetPCMSize(senderID);
23 }
24
25 public void Update() { }
26 }
27}