The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

165 lines
5.2KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2016 - ROLI Ltd.
  5. Permission is granted to use this software under the terms of the ISC license
  6. http://www.isc.org/downloads/software-support-policy/isc-license/
  7. Permission to use, copy, modify, and/or distribute this software for any
  8. purpose with or without fee is hereby granted, provided that the above
  9. copyright notice and this permission notice appear in all copies.
  10. THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD
  11. TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  12. FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT,
  13. OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  14. USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  16. OF THIS SOFTWARE.
  17. -----------------------------------------------------------------------------
  18. To release a closed-source product which uses other parts of JUCE not
  19. licensed under the ISC terms, commercial licenses are available: visit
  20. www.juce.com for more information.
  21. ==============================================================================
  22. */
  23. /*******************************************************************************
  24. The block below describes the properties of this module, and is read by
  25. the Projucer to automatically generate project code that uses it.
  26. For details about the syntax and how to create or use a module, see the
  27. JUCE Module Format.txt file.
  28. BEGIN_JUCE_MODULE_DECLARATION
  29. ID: juce_audio_devices
  30. vendor: juce
  31. version: 4.3.1
  32. name: JUCE audio and MIDI I/O device classes
  33. description: Classes to play and record from audio and MIDI I/O devices
  34. website: http://www.juce.com/juce
  35. license: ISC
  36. dependencies: juce_audio_basics, juce_events
  37. OSXFrameworks: CoreAudio CoreMIDI AudioToolbox
  38. iOSFrameworks: CoreAudio CoreMIDI AudioToolbox AVFoundation
  39. linuxPackages: alsa
  40. mingwLibs: winmm
  41. END_JUCE_MODULE_DECLARATION
  42. *******************************************************************************/
  43. #pragma once
  44. #define JUCE_AUDIO_DEVICES_H_INCLUDED
  45. #include <juce_events/juce_events.h>
  46. #include <juce_audio_basics/juce_audio_basics.h>
  47. #if JUCE_MODULE_AVAILABLE_juce_graphics
  48. #include <juce_gui_extra/juce_gui_extra.h>
  49. #endif
  50. //==============================================================================
  51. /** Config: JUCE_ASIO
  52. Enables ASIO audio devices (MS Windows only).
  53. Turning this on means that you'll need to have the Steinberg ASIO SDK installed
  54. on your Windows build machine.
  55. See the comments in the ASIOAudioIODevice class's header file for more
  56. info about this.
  57. */
  58. #ifndef JUCE_ASIO
  59. #define JUCE_ASIO 0
  60. #endif
  61. /** Config: JUCE_WASAPI
  62. Enables WASAPI audio devices (Windows Vista and above). See also the
  63. JUCE_WASAPI_EXCLUSIVE flag.
  64. */
  65. #ifndef JUCE_WASAPI
  66. #define JUCE_WASAPI 1
  67. #endif
  68. /** Config: JUCE_WASAPI_EXCLUSIVE
  69. Enables WASAPI audio devices in exclusive mode (Windows Vista and above).
  70. */
  71. #ifndef JUCE_WASAPI_EXCLUSIVE
  72. #define JUCE_WASAPI_EXCLUSIVE 0
  73. #endif
  74. /** Config: JUCE_DIRECTSOUND
  75. Enables DirectSound audio (MS Windows only).
  76. */
  77. #ifndef JUCE_DIRECTSOUND
  78. #define JUCE_DIRECTSOUND 1
  79. #endif
  80. /** Config: JUCE_ALSA
  81. Enables ALSA audio devices (Linux only).
  82. */
  83. #ifndef JUCE_ALSA
  84. #define JUCE_ALSA 1
  85. #endif
  86. /** Config: JUCE_JACK
  87. Enables JACK audio devices (Linux only).
  88. */
  89. #ifndef JUCE_JACK
  90. #define JUCE_JACK 0
  91. #endif
  92. /** Config: JUCE_USE_ANDROID_OPENSLES
  93. Enables OpenSLES devices (Android only).
  94. */
  95. #ifndef JUCE_USE_ANDROID_OPENSLES
  96. #if JUCE_ANDROID_API_VERSION > 8
  97. #define JUCE_USE_ANDROID_OPENSLES 1
  98. #else
  99. #define JUCE_USE_ANDROID_OPENSLES 0
  100. #endif
  101. #endif
  102. /** Config: JUCE_USE_WINRT_MIDI
  103. ***
  104. EXPERIMENTAL - Microsoft's Bluetooth MIDI stack has multiple issues,
  105. use at your own risk!
  106. ***
  107. Enables the use of the Windows Runtime API for MIDI, which supports
  108. Bluetooth Low Energy connections on computers with the Anniversary Update
  109. of Windows 10.
  110. To compile with this flag requires version 10.0.14393.0 of the Windows
  111. Standalone SDK and you must add the path to the WinRT headers. This path
  112. should be something similar to
  113. "C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\winrt".
  114. */
  115. #ifndef JUCE_USE_WINRT_MIDI
  116. #define JUCE_USE_WINRT_MIDI 0
  117. #endif
  118. //==============================================================================
  119. namespace juce
  120. {
  121. #include "midi_io/juce_MidiInput.h"
  122. #include "midi_io/juce_MidiMessageCollector.h"
  123. #include "midi_io/juce_MidiOutput.h"
  124. #include "audio_io/juce_AudioIODevice.h"
  125. #include "audio_io/juce_AudioIODeviceType.h"
  126. #include "audio_io/juce_SystemAudioVolume.h"
  127. #include "sources/juce_AudioSourcePlayer.h"
  128. #include "sources/juce_AudioTransportSource.h"
  129. #include "audio_io/juce_AudioDeviceManager.h"
  130. }