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.

114 lines
3.8KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2017 - ROLI Ltd.
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 5 End-User License
  8. Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
  9. 27th April 2017).
  10. End User License Agreement: www.juce.com/juce-5-licence
  11. Privacy Policy: www.juce.com/juce-5-privacy-policy
  12. Or: You may also use this code under the terms of the GPL v3 (see
  13. www.gnu.org/licenses).
  14. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  15. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  16. DISCLAIMED.
  17. ==============================================================================
  18. */
  19. #ifdef JUCE_AUDIO_FORMATS_H_INCLUDED
  20. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  21. already included any other headers - just put it inside a file on its own, possibly with your config
  22. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  23. header files that the compiler may be using.
  24. */
  25. #error "Incorrect use of JUCE cpp file"
  26. #endif
  27. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  28. #define JUCE_CORE_INCLUDE_JNI_HELPERS 1
  29. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  30. #include "juce_audio_formats.h"
  31. //==============================================================================
  32. #if JUCE_MAC
  33. #if JUCE_QUICKTIME
  34. #import <QTKit/QTKit.h>
  35. #endif
  36. #include <AudioToolbox/AudioToolbox.h>
  37. #elif JUCE_IOS
  38. #import <AudioToolbox/AudioToolbox.h>
  39. #import <AVFoundation/AVFoundation.h>
  40. //==============================================================================
  41. #elif JUCE_WINDOWS
  42. #if JUCE_QUICKTIME
  43. /* If you've got an include error here, you probably need to install the QuickTime SDK and
  44. add its header directory to your include path.
  45. Alternatively, if you don't need any QuickTime services, just set the JUCE_QUICKTIME flag to 0.
  46. */
  47. #include <Movies.h>
  48. #include <QTML.h>
  49. #include <QuickTimeComponents.h>
  50. #include <MediaHandlers.h>
  51. #include <ImageCodec.h>
  52. /* If you've got QuickTime 7 installed, then these COM objects should be found in
  53. the "\Program Files\Quicktime" directory. You'll need to add this directory to
  54. your include search path to make these import statements work.
  55. */
  56. #import <QTOLibrary.dll>
  57. #import <QTOControl.dll>
  58. #if JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  59. #pragma comment (lib, "QTMLClient.lib")
  60. #endif
  61. #endif
  62. #if JUCE_USE_WINDOWS_MEDIA_FORMAT
  63. #include <wmsdk.h>
  64. #endif
  65. #endif
  66. //==============================================================================
  67. namespace juce
  68. {
  69. #if JUCE_ANDROID
  70. #undef JUCE_QUICKTIME
  71. #endif
  72. #include "format/juce_AudioFormat.cpp"
  73. #include "format/juce_AudioFormatManager.cpp"
  74. #include "format/juce_AudioFormatReader.cpp"
  75. #include "format/juce_AudioFormatReaderSource.cpp"
  76. #include "format/juce_AudioFormatWriter.cpp"
  77. #include "format/juce_AudioSubsectionReader.cpp"
  78. #include "format/juce_BufferingAudioFormatReader.cpp"
  79. #include "sampler/juce_Sampler.cpp"
  80. #include "codecs/juce_AiffAudioFormat.cpp"
  81. #include "codecs/juce_CoreAudioFormat.cpp"
  82. #include "codecs/juce_FlacAudioFormat.cpp"
  83. #include "codecs/juce_MP3AudioFormat.cpp"
  84. #include "codecs/juce_OggVorbisAudioFormat.cpp"
  85. #include "codecs/juce_QuickTimeAudioFormat.cpp"
  86. #include "codecs/juce_WavAudioFormat.cpp"
  87. #include "codecs/juce_LAMEEncoderAudioFormat.cpp"
  88. #if JUCE_WINDOWS && JUCE_USE_WINDOWS_MEDIA_FORMAT
  89. #include "codecs/juce_WindowsMediaAudioFormat.cpp"
  90. #endif
  91. }