Audio.generated.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Audio
  7. * @{
  8. */
  9. /// <summary>Provides global functionality relating to sounds and music.</summary>
  10. [ShowInInspector]
  11. public partial class Audio : ScriptObject
  12. {
  13. private Audio(bool __dummy0) { }
  14. protected Audio() { }
  15. /// <summary>Determines global audio volume. In range [0, 1].</summary>
  16. [ShowInInspector]
  17. [NativeWrapper]
  18. public static float Volume
  19. {
  20. get { return Internal_getVolume(); }
  21. set { Internal_setVolume(value); }
  22. }
  23. /// <summary>Determines if audio reproduction is paused globally.</summary>
  24. [ShowInInspector]
  25. [NativeWrapper]
  26. public static bool Paused
  27. {
  28. get { return Internal_isPaused(); }
  29. set { Internal_setPaused(value); }
  30. }
  31. /// <summary>Determines the device on which is the audio played back on.</summary>
  32. [ShowInInspector]
  33. [NativeWrapper]
  34. public static AudioDevice ActiveDevice
  35. {
  36. get
  37. {
  38. AudioDevice temp;
  39. Internal_getActiveDevice(out temp);
  40. return temp;
  41. }
  42. set { Internal_setActiveDevice(ref value); }
  43. }
  44. /// <summary>Returns the default audio device identifier.</summary>
  45. [ShowInInspector]
  46. [NativeWrapper]
  47. public static AudioDevice DefaultDevice
  48. {
  49. get
  50. {
  51. AudioDevice temp;
  52. Internal_getDefaultDevice(out temp);
  53. return temp;
  54. }
  55. }
  56. /// <summary>Returns a list of all available audio devices.</summary>
  57. [ShowInInspector]
  58. [NativeWrapper]
  59. public static AudioDevice[] AllDevices
  60. {
  61. get { return Internal_getAllDevices(); }
  62. }
  63. [MethodImpl(MethodImplOptions.InternalCall)]
  64. private static extern void Internal_setVolume(float volume);
  65. [MethodImpl(MethodImplOptions.InternalCall)]
  66. private static extern float Internal_getVolume();
  67. [MethodImpl(MethodImplOptions.InternalCall)]
  68. private static extern void Internal_setPaused(bool paused);
  69. [MethodImpl(MethodImplOptions.InternalCall)]
  70. private static extern bool Internal_isPaused();
  71. [MethodImpl(MethodImplOptions.InternalCall)]
  72. private static extern void Internal_setActiveDevice(ref AudioDevice device);
  73. [MethodImpl(MethodImplOptions.InternalCall)]
  74. private static extern void Internal_getActiveDevice(out AudioDevice __output);
  75. [MethodImpl(MethodImplOptions.InternalCall)]
  76. private static extern void Internal_getDefaultDevice(out AudioDevice __output);
  77. [MethodImpl(MethodImplOptions.InternalCall)]
  78. private static extern AudioDevice[] Internal_getAllDevices();
  79. }
  80. /** @} */
  81. }