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.

118 lines
4.0KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2015 - ROLI Ltd.
  5. Permission is granted to use this software under the terms of either:
  6. a) the GPL v2 (or any later version)
  7. b) the Affero GPL v3
  8. Details of these licenses can be found at: www.gnu.org/licenses
  9. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. ------------------------------------------------------------------------------
  13. To release a closed-source product which uses JUCE, commercial licenses are
  14. available: visit www.juce.com for more information.
  15. ==============================================================================
  16. */
  17. #ifdef JUCE_AUDIO_FORMATS_H_INCLUDED
  18. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  19. already included any other headers - just put it inside a file on its own, possibly with your config
  20. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  21. header files that the compiler may be using.
  22. */
  23. #error "Incorrect use of JUCE cpp file"
  24. #endif
  25. #include "../juce_core/native/juce_BasicNativeHeaders.h"
  26. #include "juce_audio_formats.h"
  27. //==============================================================================
  28. #if JUCE_MAC
  29. #define Point CarbonDummyPointName
  30. #define Component CarbonDummyCompName
  31. #if JUCE_QUICKTIME
  32. #import <QTKit/QTKit.h>
  33. #endif
  34. #include <AudioToolbox/AudioToolbox.h>
  35. #undef Component
  36. #undef Point
  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. #include "../juce_core/native/juce_android_JNIHelpers.h"
  71. #undef JUCE_QUICKTIME
  72. #endif
  73. #if JUCE_WINDOWS
  74. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  75. #endif
  76. #include "format/juce_AudioFormat.cpp"
  77. #include "format/juce_AudioFormatManager.cpp"
  78. #include "format/juce_AudioFormatReader.cpp"
  79. #include "format/juce_AudioFormatReaderSource.cpp"
  80. #include "format/juce_AudioFormatWriter.cpp"
  81. #include "format/juce_AudioSubsectionReader.cpp"
  82. #include "format/juce_BufferingAudioFormatReader.cpp"
  83. #include "sampler/juce_Sampler.cpp"
  84. #include "codecs/juce_AiffAudioFormat.cpp"
  85. #include "codecs/juce_CoreAudioFormat.cpp"
  86. #include "codecs/juce_FlacAudioFormat.cpp"
  87. #include "codecs/juce_MP3AudioFormat.cpp"
  88. #include "codecs/juce_OggVorbisAudioFormat.cpp"
  89. #include "codecs/juce_QuickTimeAudioFormat.cpp"
  90. #include "codecs/juce_WavAudioFormat.cpp"
  91. #include "codecs/juce_LAMEEncoderAudioFormat.cpp"
  92. #if JUCE_WINDOWS && JUCE_USE_WINDOWS_MEDIA_FORMAT
  93. #include "codecs/juce_WindowsMediaAudioFormat.cpp"
  94. #endif
  95. }