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.

112 lines
3.8KB

  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. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  26. #define JUCE_CORE_INCLUDE_JNI_HELPERS 1
  27. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  28. #include "juce_audio_formats.h"
  29. //==============================================================================
  30. #if JUCE_MAC
  31. #if JUCE_QUICKTIME
  32. #import <QTKit/QTKit.h>
  33. #endif
  34. #include <AudioToolbox/AudioToolbox.h>
  35. #elif JUCE_IOS
  36. #import <AudioToolbox/AudioToolbox.h>
  37. #import <AVFoundation/AVFoundation.h>
  38. //==============================================================================
  39. #elif JUCE_WINDOWS
  40. #if JUCE_QUICKTIME
  41. /* If you've got an include error here, you probably need to install the QuickTime SDK and
  42. add its header directory to your include path.
  43. Alternatively, if you don't need any QuickTime services, just set the JUCE_QUICKTIME flag to 0.
  44. */
  45. #include <Movies.h>
  46. #include <QTML.h>
  47. #include <QuickTimeComponents.h>
  48. #include <MediaHandlers.h>
  49. #include <ImageCodec.h>
  50. /* If you've got QuickTime 7 installed, then these COM objects should be found in
  51. the "\Program Files\Quicktime" directory. You'll need to add this directory to
  52. your include search path to make these import statements work.
  53. */
  54. #import <QTOLibrary.dll>
  55. #import <QTOControl.dll>
  56. #if JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  57. #pragma comment (lib, "QTMLClient.lib")
  58. #endif
  59. #endif
  60. #if JUCE_USE_WINDOWS_MEDIA_FORMAT
  61. #include <wmsdk.h>
  62. #endif
  63. #endif
  64. //==============================================================================
  65. namespace juce
  66. {
  67. #if JUCE_ANDROID
  68. #undef JUCE_QUICKTIME
  69. #endif
  70. #include "format/juce_AudioFormat.cpp"
  71. #include "format/juce_AudioFormatManager.cpp"
  72. #include "format/juce_AudioFormatReader.cpp"
  73. #include "format/juce_AudioFormatReaderSource.cpp"
  74. #include "format/juce_AudioFormatWriter.cpp"
  75. #include "format/juce_AudioSubsectionReader.cpp"
  76. #include "format/juce_BufferingAudioFormatReader.cpp"
  77. #include "sampler/juce_Sampler.cpp"
  78. #include "codecs/juce_AiffAudioFormat.cpp"
  79. #include "codecs/juce_CoreAudioFormat.cpp"
  80. #include "codecs/juce_FlacAudioFormat.cpp"
  81. #include "codecs/juce_MP3AudioFormat.cpp"
  82. #include "codecs/juce_OggVorbisAudioFormat.cpp"
  83. #include "codecs/juce_QuickTimeAudioFormat.cpp"
  84. #include "codecs/juce_WavAudioFormat.cpp"
  85. #include "codecs/juce_LAMEEncoderAudioFormat.cpp"
  86. #if JUCE_WINDOWS && JUCE_USE_WINDOWS_MEDIA_FORMAT
  87. #include "codecs/juce_WindowsMediaAudioFormat.cpp"
  88. #endif
  89. }