text: /*
    ==============================================================================
  
     This file is part of the JUCE library.
     Copyright (c) 2017 - ROLI Ltd.
  
     JUCE is an open source library subject to commercial or open-source
     licensing.
  
     The code included in this file is provided under the terms of the ISC license
     http://www.isc.org/downloads/software-support-policy/isc-license. Permission
     To use, copy, modify, and/or distribute this software for any purpose with or
     without fee is hereby granted provided that the above copyright notice and
     this permission notice appear in all copies.
  
     JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
     EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
     DISCLAIMED.
  
    ==============================================================================
  */
  
  /*******************************************************************************
   The block below describes the properties of this module, and is read by
   the Projucer to automatically generate project code that uses it.
   For details about the syntax and how to create or use a module, see the
   JUCE Module Format.txt file.
  
  
   BEGIN_JUCE_MODULE_DECLARATION
  
    ID:               juce_audio_devices
    vendor:           juce
    version:          5.4.2
    name:             JUCE audio and MIDI I/O device classes
    description:      Classes to play and record from audio and MIDI I/O devices
    website:          http://www.juce.com/juce
    license:          ISC
  
    dependencies:     juce_audio_basics, juce_events
    OSXFrameworks:    CoreAudio CoreMIDI AudioToolbox
    iOSFrameworks:    CoreAudio CoreMIDI AudioToolbox AVFoundation
    linuxPackages:    alsa
    mingwLibs:        winmm
  
   END_JUCE_MODULE_DECLARATION
  
  *******************************************************************************/
  
  
  #pragma once
  #define JUCE_AUDIO_DEVICES_H_INCLUDED
  
  #include <juce_events/juce_events.h>
  #include <juce_audio_basics/juce_audio_basics.h>
  
  #if JUCE_MODULE_AVAILABLE_juce_graphics
  #include <juce_graphics/juce_graphics.h>
  #endif
  
  //==============================================================================
  /** Config: JUCE_USE_WINRT_MIDI
      Enables the use of the Windows Runtime API for MIDI, allowing connections
      to Bluetooth Low Energy devices on Windows 10 version 1809 (October 2018
      Update) and later. If you enable this flag then older, unsupported,
      versions of Windows will automatically fall back to using the regualar
      Win32 MIDI API.
  
      You will need version 10.0.14393.0 of the Windows Standalone SDK to compile
      and you may need to add the path to the WinRT headers. The path to the
      headers will be something similar to
      "C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\winrt".
  */
  #ifndef JUCE_USE_WINRT_MIDI
   #define JUCE_USE_WINRT_MIDI 0
  #endif
  
  /** Config: JUCE_ASIO
      Enables ASIO audio devices (MS Windows only).
      Turning this on means that you'll need to have the Steinberg ASIO SDK installed
      on your Windows build machine.
  
      See the comments in the ASIOAudioIODevice class's header file for more
      info about this.
  */
  #ifndef JUCE_ASIO
   #define JUCE_ASIO 0
  #endif
  
  /** Config: JUCE_WASAPI
      Enables WASAPI audio devices (Windows Vista and above). See also the
      JUCE_WASAPI_EXCLUSIVE flag.
  */
  #ifndef JUCE_WASAPI
   #define JUCE_WASAPI 1
  #endif
  
  /** Config: JUCE_WASAPI_EXCLUSIVE
      Enables WASAPI audio devices in exclusive mode (Windows Vista and above).
  */
  #ifndef JUCE_WASAPI_EXCLUSIVE
   #define JUCE_WASAPI_EXCLUSIVE 0
  #endif
  
  
  /** Config: JUCE_DIRECTSOUND
      Enables DirectSound audio (MS Windows only).
  */
  #ifndef JUCE_DIRECTSOUND
   #define JUCE_DIRECTSOUND 1
  #endif
  
  /** Config: JUCE_ALSA
      Enables ALSA audio devices (Linux only).
  */
  #ifndef JUCE_ALSA
   #define JUCE_ALSA 1
  #endif
  
  /** Config: JUCE_JACK
      Enables JACK audio devices (Linux only).
  */
  #ifndef JUCE_JACK
   #define JUCE_JACK 0
  #endif
  
  /** Config: JUCE_BELA
      Enables Bela audio devices on Bela boards.
  */
  #ifndef JUCE_BELA
   #define JUCE_BELA 0
  #endif
  
  /** Config: JUCE_USE_ANDROID_OBOE
      ***
      DEVELOPER PREVIEW - Oboe is currently in developer preview and
      is in active development. This preview allows for early access
      and evaluation for developers targeting Android platform.
      ***
  
      Enables Oboe devices (Android only, API 16 or above). Requires
      Oboe repository path to be specified in Android exporter.
  */
  
  #ifndef JUCE_USE_ANDROID_OBOE
   #define JUCE_USE_ANDROID_OBOE 0
  #endif
  
  #if JUCE_USE_ANDROID_OBOE && JUCE_ANDROID_API_VERSION < 16
   #undef JUCE_USE_ANDROID_OBOE
   #define JUCE_USE_ANDROID_OBOE 0
  #endif
  
  /** Config: JUCE_USE_ANDROID_OPENSLES
      Enables OpenSLES devices (Android only).
  */
  #ifndef JUCE_USE_ANDROID_OPENSLES
   #if ! JUCE_USE_ANDROID_OBOE && JUCE_ANDROID_API_VERSION >= 9
    #define JUCE_USE_ANDROID_OPENSLES 1
   #else
    #define JUCE_USE_ANDROID_OPENSLES 0
   #endif
  #endif
  
  /** Config: JUCE_DISABLE_AUDIO_MIXING_WITH_OTHER_APPS
      Turning this on gives your app exclusive access to the system's audio
      on platforms which support it (currently iOS only).
  */
  #ifndef JUCE_DISABLE_AUDIO_MIXING_WITH_OTHER_APPS
   #define JUCE_DISABLE_AUDIO_MIXING_WITH_OTHER_APPS 0
  #endif
  
  //==============================================================================
  #include "midi_io/juce_MidiInput.h"
  #include "midi_io/juce_MidiMessageCollector.h"
  #include "midi_io/juce_MidiOutput.h"
  #include "audio_io/juce_AudioIODevice.h"
  #include "audio_io/juce_AudioIODeviceType.h"
  #include "audio_io/juce_SystemAudioVolume.h"
  #include "sources/juce_AudioSourcePlayer.h"
  #include "sources/juce_AudioTransportSource.h"
  #include "audio_io/juce_AudioDeviceManager.h"
  
  #if JUCE_IOS
   #include "native/juce_ios_Audio.h"
  #endif
  