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

  1. using UnityEngine;
  2. using System.Collections;
  3. using System;
  4. namespace Oculus.Platform
  5. {
  6. public class VoipPCMSourceNative : IVoipPCMSource
  7. {
  8. ulong senderID;
  9. public int GetPCM(float[] dest, int length)
  10. {
  11. return (int)CAPI.ovr_Voip_GetPCMFloat(senderID, dest, (UIntPtr)length);
  12. }
  13. public void SetSenderID(ulong senderID)
  14. {
  15. this.senderID = senderID;
  16. }
  17. public int PeekSizeElements() {
  18. return (int)CAPI.ovr_Voip_GetPCMSize(senderID);
  19. }
  20. public void Update() { }
  21. }
  22. }