Beispiel #1
0
 public uhsclErrorCode_t uhsclStart(IntPtr sensationCoreInstancePtr, uhsclHandle outputHandle, uhsclHandle inputSourceHandle, out uhsclHandle playbackInstanceHandle)
 {
     lock (lock_)
     {
         return(interop_.uhsclStart(sensationCoreInstancePtr, outputHandle, inputSourceHandle, out playbackInstanceHandle));
     }
 }
Beispiel #2
0
 public void SetPriority(uhsclHandle playbackInstanceHandle, uint priority)
 {
     if (sensationCoreInterop_ != null)
     {
         sensationCoreInterop_.uhsclSetPriority(sensationCoreInstancePtr_, playbackInstanceHandle, priority);
     }
 }
Beispiel #3
0
 public uhsclErrorCode_t uhsclGetNameLength(IntPtr sensationCoreInstancePtr, uhsclHandle handle, out ulong count)
 {
     lock (lock_)
     {
         return(interop_.uhsclGetNameLength(sensationCoreInstancePtr, handle, out count));
     }
 }
Beispiel #4
0
 public uhsclErrorCode_t uhsclGetInputByName(IntPtr sensationCoreInstancePtr, uhsclHandle blockDefinitionHandle, string inputName, out uhsclHandle blockInputHandle)
 {
     lock (lock_)
     {
         return(interop_.uhsclGetInputByName(sensationCoreInstancePtr, blockDefinitionHandle, inputName, out blockInputHandle));
     }
 }
Beispiel #5
0
 public uhsclErrorCode_t uhsclSetPriority(IntPtr sensationCoreInstancePtr, uhsclHandle handle, uint priority)
 {
     lock (lock_)
     {
         return(interop_.uhsclSetPriority(sensationCoreInstancePtr, handle, priority));
     }
 }
Beispiel #6
0
 public void SetInputToVector3(uhsclHandle blockHandle, uhsclHandle inputHandle, UnityEngine.Vector3 inputValue)
 {
     if (sensationCoreInterop_ != null)
     {
         sensationCoreInterop_.uhsclSetInputToUhsclVector3(sensationCoreInstancePtr_, blockHandle, inputHandle, new uhsclVector3_t(inputValue.x, inputValue.y, inputValue.z));
     }
 }
Beispiel #7
0
 public uhsclErrorCode_t uhsclGetName(IntPtr sensationCoreInstancePtr, uhsclHandle handle, ulong nameBufferLength, byte[] nameBuffer)
 {
     lock (lock_)
     {
         return(interop_.uhsclGetName(sensationCoreInstancePtr, handle, nameBufferLength, nameBuffer));
     }
 }
Beispiel #8
0
 public uhsclErrorCode_t uhsclUnmute(IntPtr sensationCoreInstancePtr, uhsclHandle handle)
 {
     lock (lock_)
     {
         return(interop_.uhsclUnmute(sensationCoreInstancePtr, handle));
     }
 }
Beispiel #9
0
        public uhsclErrorCode_t uhsclGetName(IntPtr sensationCoreInstancePtr, uhsclHandle handle, ulong nameBufferLength, byte[] nameBuffer)
        {
            var error = interop_.uhsclGetName(sensationCoreInstancePtr, handle, nameBufferLength, nameBuffer);

            ForwardLogMessages(sensationCoreInstancePtr);
            return(error);
        }
Beispiel #10
0
        public uhsclErrorCode_t uhsclUnmute(IntPtr sensationCoreInstancePtr, uhsclHandle handle)
        {
            var error = interop_.uhsclUnmute(sensationCoreInstancePtr, handle);

            ForwardLogMessages(sensationCoreInstancePtr);
            return(error);
        }
Beispiel #11
0
        public uhsclErrorCode_t uhsclGetNameLength(IntPtr sensationCoreInstancePtr, uhsclHandle handle, out ulong count)
        {
            var error = interop_.uhsclGetNameLength(sensationCoreInstancePtr, handle, out count);

            ForwardLogMessages(sensationCoreInstancePtr);
            return(error);
        }
Beispiel #12
0
        public uhsclErrorCode_t uhsclStart(IntPtr sensationCoreInstancePtr, uhsclHandle outputHandle, uhsclHandle inputSourceHandle, out uhsclHandle playbackInstanceHandle)
        {
            var error = interop_.uhsclStart(sensationCoreInstancePtr, outputHandle, inputSourceHandle, out playbackInstanceHandle);

            ForwardLogMessages(sensationCoreInstancePtr);
            return(error);
        }
Beispiel #13
0
 public uhsclErrorCode_t uhsclUnmute(
     IntPtr sensationCoreInstancePtr,
     uhsclHandle playbackInstanceHandle
     )
 {
     return(Native.uhsclUnmute(sensationCoreInstancePtr, playbackInstanceHandle.Value));
 }
Beispiel #14
0
        public uhsclErrorCode_t uhsclGetInputByName(IntPtr sensationCoreInstancePtr, uhsclHandle blockDefinitionHandle, string inputName, out uhsclHandle blockInputHandle)
        {
            var error = interop_.uhsclGetInputByName(sensationCoreInstancePtr, blockDefinitionHandle, inputName, out blockInputHandle);

            ForwardLogMessages(sensationCoreInstancePtr);
            return(error);
        }
Beispiel #15
0
        public uhsclErrorCode_t uhsclSetPriority(IntPtr sensationCoreInstancePtr, uhsclHandle handle, uint priority)
        {
            var error = interop_.uhsclSetPriority(sensationCoreInstancePtr, handle, priority);

            ForwardLogMessages(sensationCoreInstancePtr);
            return(error);
        }
Beispiel #16
0
 public void Unmute(uhsclHandle playbackInstanceHandle)
 {
     if (sensationCoreInterop_ != null)
     {
         sensationCoreInterop_.uhsclUnmute(sensationCoreInstancePtr_, playbackInstanceHandle);
     }
 }
Beispiel #17
0
 public uhsclErrorCode_t uhsclSetPriority(
     IntPtr sensationCoreInstancePtr,
     uhsclHandle playbackInstanceHandle,
     UInt32 priority
     )
 {
     return(Native.uhsclSetPriority(sensationCoreInstancePtr, playbackInstanceHandle, priority));
 }
Beispiel #18
0
 internal void ReassignInputsHandles(uhsclHandle blockHandle)
 {
     for (int i = 0; i < inputs_.Count; i++)
     {
         var handle = SensationCore.Instance.GetInputAtIndex(blockHandle, i);
         inputs_[i].Handle = handle;
     }
 }
Beispiel #19
0
        public uhsclErrorCode_t uhsclCreateInputSource(IntPtr sensationCoreInstancePtr, uhsclHandle blockHandle,
                                                       out uhsclHandle inputSourceHandle)
        {
            var error = interop_.uhsclCreateInputSource(sensationCoreInstancePtr, blockHandle, out inputSourceHandle);

            ForwardLogMessages(sensationCoreInstancePtr);
            return(error);
        }
Beispiel #20
0
 public uhsclErrorCode_t uhsclCreateInputSource(IntPtr sensationCoreInstancePtr, uhsclHandle blockHandle,
                                                out uhsclHandle inputSourceHandle)
 {
     lock (lock_)
     {
         return(interop_.uhsclCreateInputSource(sensationCoreInstancePtr, blockHandle, out inputSourceHandle));
     }
 }
Beispiel #21
0
 public uhsclErrorCode_t uhsclSetInputToUhsclVector3(
     IntPtr sensationCoreInstancePtr,
     uhsclHandle inputSourceHandle,
     uhsclHandle inputHandle,
     uhsclVector3_t inputVector
     )
 {
     return(Native.uhsclSetInputToUhsclVector3(sensationCoreInstancePtr, inputSourceHandle.Value, inputHandle.Value, inputVector));
 }
Beispiel #22
0
 public uhsclErrorCode_t uhsclGetName(
     IntPtr sensationCoreInstancePtr,
     uhsclHandle handle,
     size_t nameBufferLength,
     [In, Out] byte[] nameBuffer
     )
 {
     return(Native.uhsclGetName(sensationCoreInstancePtr, handle.Value, nameBufferLength, nameBuffer));
 }
Beispiel #23
0
 internal void Apply(uhsclHandle inputSource)
 {
     if (HasChangedSinceLastApply())
     {
         SensationCore.Instance.SetInputToVector3(inputSource, handle_, Value);
         IsDirty        = false;
         previousValue_ = Value;
     }
 }
Beispiel #24
0
 private void StopPlaying()
 {
     if (SensationCore.Instance != null && IsPlaying())
     {
         SensationCore.Instance.Stop(playbackInstanceHandle_);
     }
     playbackInstanceHandle_   = uhsclHandle.INVALID_HANDLE;
     hasPreviouslySetRunning_  = false;
     hasPreviouslySetPriority_ = false;
 }
Beispiel #25
0
 public uhsclErrorCode_t uhsclGetMetaDataString(
     IntPtr sensationCoreInstancePtr,
     uhsclHandle handle,
     string identifier,
     size_t metadataBufferLength,
     [In, Out] byte[] metadataValue
     )
 {
     return(Native.uhsclGetMetaDataString(sensationCoreInstancePtr, handle.Value, identifier, metadataBufferLength, metadataValue));
 }
Beispiel #26
0
        public UnityEngine.Vector3 GetInputAsVector3ByIndex(uhsclHandle handle, int inputIdx)
        {
            uhsclVector3_t value = new uhsclVector3_t(0, 0, 0);

            if (sensationCoreInterop_ != null)
            {
                sensationCoreInterop_.uhsclGetInputAsUhsclVector3ByIndex(sensationCoreInstancePtr_, handle, inputIdx, out value);
            }
            return(value.toVector3());
        }
Beispiel #27
0
        public uhsclHandle OutputHandleToBlockAtIndex(uhsclHandle blockHandle, int idx)
        {
            uhsclHandle outputHandle = uhsclHandle.INVALID_HANDLE;

            if (sensationCoreInterop_ != null)
            {
                sensationCoreInterop_.uhsclGetOutputAtIndex(sensationCoreInstancePtr_, blockHandle, idx, out outputHandle);
            }
            return(outputHandle);
        }
Beispiel #28
0
        public int OutputCount(uhsclHandle blockHandle)
        {
            size_t count = 0;

            if (sensationCoreInterop_ != null)
            {
                sensationCoreInterop_.uhsclOutputCount(sensationCoreInstancePtr_, blockHandle, out count);
            }
            return(Convert.ToInt32(count));
        }
Beispiel #29
0
        public uhsclHandle GetCurrentlyPlayingInstance()
        {
            uhsclHandle currentlyPlaying = uhsclHandle.INVALID_HANDLE;

            if (sensationCoreInterop_ != null)
            {
                sensationCoreInterop_.uhsclGetCurrentlyPlayingInstance(sensationCoreInstancePtr_, out currentlyPlaying);
            }
            return(currentlyPlaying);
        }
Beispiel #30
0
        public uhsclHandle CreateInputSource(uhsclHandle blockHandle)
        {
            uhsclHandle inputSourceHandle = uhsclHandle.INVALID_HANDLE;

            if (sensationCoreInterop_ != null)
            {
                sensationCoreInterop_.uhsclCreateInputSource(sensationCoreInstancePtr_, blockHandle, out inputSourceHandle);
            }
            return(inputSourceHandle);
        }