| 1 | // This file was @generated with LibOVRPlatform/codegen/main. Do not modify it! |
| 2 | |
| 3 | namespace Oculus.Platform |
| 4 | { |
| 5 | using System; |
| 6 | using System.Collections; |
| 7 | using Oculus.Platform.Models; |
| 8 | using System.Collections.Generic; |
| 9 | using UnityEngine; |
| 10 | |
| 11 | public class VoipOptions { |
| 12 | |
| 13 | public VoipOptions() { |
| 14 | Handle = CAPI.ovr_VoipOptions_Create(); |
| 15 | } |
| 16 | |
| 17 | public void SetBitrateForNewConnections(VoipBitrate value) { |
| 18 | CAPI.ovr_VoipOptions_SetBitrateForNewConnections(Handle, value); |
| 19 | } |
| 20 | |
| 21 | public void SetCreateNewConnectionUseDtx(VoipDtxState value) { |
| 22 | CAPI.ovr_VoipOptions_SetCreateNewConnectionUseDtx(Handle, value); |
| 23 | } |
| 24 | |
| 25 | |
| 26 | // For passing to native C |
| 27 | public static explicit operator IntPtr(VoipOptions options) { |
| 28 | return options != null ? options.Handle : IntPtr.Zero; |
| 29 | } |
| 30 | |
| 31 | ~VoipOptions() { |
| 32 | CAPI.ovr_VoipOptions_Destroy(Handle); |
| 33 | } |
| 34 | |
| 35 | IntPtr Handle; |
| 36 | } |
| 37 | } |