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.

122 lines
4.2KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2013 - Raw Material Software 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. #if defined (JUCE_AUDIO_FORMATS_H_INCLUDED) && ! JUCE_AMALGAMATED_INCLUDE
  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. // Your project must contain an AppConfig.h file with your project-specific settings in it,
  26. // and your header search path must make it accessible to the module's files.
  27. #include "AppConfig.h"
  28. #include "../juce_core/native/juce_BasicNativeHeaders.h"
  29. #include "juce_audio_formats.h"
  30. //==============================================================================
  31. #if JUCE_MAC
  32. #define Point CarbonDummyPointName
  33. #define Component CarbonDummyCompName
  34. #if JUCE_QUICKTIME
  35. #import <QTKit/QTKit.h>
  36. #endif
  37. #include <AudioToolbox/AudioToolbox.h>
  38. #undef Component
  39. #undef Point
  40. #elif JUCE_IOS
  41. #import <AudioToolbox/AudioToolbox.h>
  42. #import <AVFoundation/AVFoundation.h>
  43. //==============================================================================
  44. #elif JUCE_WINDOWS
  45. #if JUCE_QUICKTIME
  46. /* If you've got an include error here, you probably need to install the QuickTime SDK and
  47. add its header directory to your include path.
  48. Alternatively, if you don't need any QuickTime services, just set the JUCE_QUICKTIME flag to 0.
  49. */
  50. #include <Movies.h>
  51. #include <QTML.h>
  52. #include <QuickTimeComponents.h>
  53. #include <MediaHandlers.h>
  54. #include <ImageCodec.h>
  55. /* If you've got QuickTime 7 installed, then these COM objects should be found in
  56. the "\Program Files\Quicktime" directory. You'll need to add this directory to
  57. your include search path to make these import statements work.
  58. */
  59. #import <QTOLibrary.dll>
  60. #import <QTOControl.dll>
  61. #if JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  62. #pragma comment (lib, "QTMLClient.lib")
  63. #endif
  64. #endif
  65. #if JUCE_USE_WINDOWS_MEDIA_FORMAT
  66. #include <wmsdk.h>
  67. #endif
  68. #endif
  69. //==============================================================================
  70. namespace juce
  71. {
  72. #if JUCE_ANDROID
  73. #include "../juce_core/native/juce_android_JNIHelpers.h"
  74. #undef JUCE_QUICKTIME
  75. #endif
  76. #if JUCE_WINDOWS
  77. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  78. #endif
  79. #include "format/juce_AudioFormat.cpp"
  80. #include "format/juce_AudioFormatManager.cpp"
  81. #include "format/juce_AudioFormatReader.cpp"
  82. #include "format/juce_AudioFormatReaderSource.cpp"
  83. #include "format/juce_AudioFormatWriter.cpp"
  84. #include "format/juce_AudioSubsectionReader.cpp"
  85. #include "format/juce_BufferingAudioFormatReader.cpp"
  86. #include "sampler/juce_Sampler.cpp"
  87. #include "codecs/juce_AiffAudioFormat.cpp"
  88. #include "codecs/juce_CoreAudioFormat.cpp"
  89. #include "codecs/juce_FlacAudioFormat.cpp"
  90. #include "codecs/juce_MP3AudioFormat.cpp"
  91. #include "codecs/juce_OggVorbisAudioFormat.cpp"
  92. #include "codecs/juce_QuickTimeAudioFormat.cpp"
  93. #include "codecs/juce_WavAudioFormat.cpp"
  94. #include "codecs/juce_LAMEEncoderAudioFormat.cpp"
  95. #if JUCE_WINDOWS && JUCE_USE_WINDOWS_MEDIA_FORMAT
  96. #include "codecs/juce_WindowsMediaAudioFormat.cpp"
  97. #endif
  98. }