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.9KB

  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. #if JUCE_QUICKTIME
  30. #import <QTKit/QTKit.h>
  31. #endif
  32. #include <AudioToolbox/AudioToolbox.h>
  33. #elif JUCE_IOS
  34. #import <AudioToolbox/AudioToolbox.h>
  35. #import <AVFoundation/AVFoundation.h>
  36. //==============================================================================
  37. #elif JUCE_WINDOWS
  38. #if JUCE_QUICKTIME
  39. /* If you've got an include error here, you probably need to install the QuickTime SDK and
  40. add its header directory to your include path.
  41. Alternatively, if you don't need any QuickTime services, just set the JUCE_QUICKTIME flag to 0.
  42. */
  43. #include <Movies.h>
  44. #include <QTML.h>
  45. #include <QuickTimeComponents.h>
  46. #include <MediaHandlers.h>
  47. #include <ImageCodec.h>
  48. /* If you've got QuickTime 7 installed, then these COM objects should be found in
  49. the "\Program Files\Quicktime" directory. You'll need to add this directory to
  50. your include search path to make these import statements work.
  51. */
  52. #import <QTOLibrary.dll>
  53. #import <QTOControl.dll>
  54. #if JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  55. #pragma comment (lib, "QTMLClient.lib")
  56. #endif
  57. #endif
  58. #if JUCE_USE_WINDOWS_MEDIA_FORMAT
  59. #include <wmsdk.h>
  60. #endif
  61. #endif
  62. //==============================================================================
  63. namespace juce
  64. {
  65. #if JUCE_ANDROID
  66. #include "../juce_core/native/juce_android_JNIHelpers.h"
  67. #undef JUCE_QUICKTIME
  68. #endif
  69. #if JUCE_WINDOWS
  70. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  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. }