Audio.generated.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. public partial class Audio : ScriptObject
  11. {
  12. private Audio(bool __dummy0) { }
  13. protected Audio() { }
  14. /// <summary>Determines global audio volume. In range [0, 1].</summary>
  15. public static float Volume
  16. {
  17. get { return Internal_getVolume(); }
  18. set { Internal_setVolume(value); }
  19. }
  20. /// <summary>Determines if audio reproduction is paused globally.</summary>
  21. public static bool Paused
  22. {
  23. get { return Internal_isPaused(); }
  24. set { Internal_setPaused(value); }
  25. }
  26. /// <summary>Determines the device on which is the audio played back on.</summary>
  27. public static AudioDevice ActiveDevice
  28. {
  29. get
  30. {
  31. AudioDevice temp;
  32. Internal_getActiveDevice(out temp);
  33. return temp;
  34. }
  35. set { Internal_setActiveDevice(ref value); }
  36. }
  37. /// <summary>Returns the default audio device identifier.</summary>
  38. public static AudioDevice DefaultDevice
  39. {
  40. get
  41. {
  42. AudioDevice temp;
  43. Internal_getDefaultDevice(out temp);
  44. return temp;
  45. }
  46. }
  47. /// <summary>Returns a list of all available audio devices.</summary>
  48. public static AudioDevice[] AllDevices
  49. {
  50. get { return Internal_getAllDevices(); }
  51. }
  52. [MethodImpl(MethodImplOptions.InternalCall)]
  53. private static extern void Internal_setVolume(float volume);
  54. [MethodImpl(MethodImplOptions.InternalCall)]
  55. private static extern float Internal_getVolume();
  56. [MethodImpl(MethodImplOptions.InternalCall)]
  57. private static extern void Internal_setPaused(bool paused);
  58. [MethodImpl(MethodImplOptions.InternalCall)]
  59. private static extern bool Internal_isPaused();
  60. [MethodImpl(MethodImplOptions.InternalCall)]
  61. private static extern void Internal_setActiveDevice(ref AudioDevice device);
  62. [MethodImpl(MethodImplOptions.InternalCall)]
  63. private static extern void Internal_getActiveDevice(out AudioDevice __output);
  64. [MethodImpl(MethodImplOptions.InternalCall)]
  65. private static extern void Internal_getDefaultDevice(out AudioDevice __output);
  66. [MethodImpl(MethodImplOptions.InternalCall)]
  67. private static extern AudioDevice[] Internal_getAllDevices();
  68. }
  69. /** @} */
  70. }