| 1 | using UnityEngine; |
| 2 | using System.Collections; |
| 3 | using System; |
| 4 | |
| 5 | namespace 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 | } |