ONSPVersion.cs 626 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Runtime.InteropServices;
  3. using UnityEngine;
  4. public class ONSPVersion : MonoBehaviour
  5. {
  6. [DllImport("AudioPluginOculusSpatializer")]
  7. private static extern void ONSP_GetVersion(ref int Major, ref int Minor, ref int Patch);
  8. private void Awake()
  9. {
  10. int num = 0;
  11. int num2 = 0;
  12. int num3 = 0;
  13. ONSPVersion.ONSP_GetVersion(ref num, ref num2, ref num3);
  14. string message = string.Format("ONSP Version: {0:F0}.{1:F0}.{2:F0}", num, num2, num3);
  15. Debug.Log(message);
  16. }
  17. private void Start()
  18. {
  19. }
  20. private void Update()
  21. {
  22. }
  23. public const string strONSPS = "AudioPluginOculusSpatializer";
  24. }