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.

117 lines
4.3KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-11 by Raw Material Software Ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the GNU General
  7. Public License (Version 2), as published by the Free Software Foundation.
  8. A copy of the license is included in the JUCE distribution, or can be found
  9. online at www.gnu.org/licenses.
  10. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  13. ------------------------------------------------------------------------------
  14. To release a closed-source product which uses JUCE, commercial licenses are
  15. available: visit www.rawmaterialsoftware.com/juce for more information.
  16. ==============================================================================
  17. */
  18. #ifdef __JUCE_AUDIO_FORMATS_JUCEHEADER__
  19. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  20. already included any other headers - just put it inside a file on its own, possibly with your config
  21. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  22. header files that the compiler may be using.
  23. */
  24. #error "Incorrect use of JUCE cpp file"
  25. #endif
  26. // Your project must contain an AppConfig.h file with your project-specific settings in it,
  27. // and your header search path must make it accessible to the module's files.
  28. #include "AppConfig.h"
  29. #include "../juce_core/native/juce_BasicNativeHeaders.h"
  30. #include "juce_audio_formats.h"
  31. //==============================================================================
  32. #if JUCE_MAC
  33. #define Point CarbonDummyPointName
  34. #define Component CarbonDummyCompName
  35. #if JUCE_QUICKTIME
  36. #import <QTKit/QTKit.h>
  37. #endif
  38. #include <AudioToolbox/AudioToolbox.h>
  39. #undef Component
  40. #undef Point
  41. #elif JUCE_IOS
  42. #import <AudioToolbox/AudioToolbox.h>
  43. #import <AVFoundation/AVFoundation.h>
  44. //==============================================================================
  45. #elif JUCE_WINDOWS
  46. #if JUCE_QUICKTIME
  47. /* If you've got an include error here, you probably need to install the QuickTime SDK and
  48. add its header directory to your include path.
  49. Alternatively, if you don't need any QuickTime services, just set the JUCE_QUICKTIME flag to 0.
  50. */
  51. #include <Movies.h>
  52. #include <QTML.h>
  53. #include <QuickTimeComponents.h>
  54. #include <MediaHandlers.h>
  55. #include <ImageCodec.h>
  56. /* If you've got QuickTime 7 installed, then these COM objects should be found in
  57. the "\Program Files\Quicktime" directory. You'll need to add this directory to
  58. your include search path to make these import statements work.
  59. */
  60. #import <QTOLibrary.dll>
  61. #import <QTOControl.dll>
  62. #if JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  63. #pragma comment (lib, "QTMLClient.lib")
  64. #endif
  65. #endif
  66. #include <wmsdk.h>
  67. #endif
  68. //==============================================================================
  69. BEGIN_JUCE_NAMESPACE
  70. #if JUCE_ANDROID
  71. #include "../juce_core/native/juce_android_JNIHelpers.h"
  72. #undef JUCE_QUICKTIME
  73. #endif
  74. #if JUCE_WINDOWS
  75. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  76. #endif
  77. // START_AUTOINCLUDE format/*.cpp, sampler/*.cpp, codecs/*.cpp
  78. #include "format/juce_AudioFormat.cpp"
  79. #include "format/juce_AudioFormatManager.cpp"
  80. #include "format/juce_AudioFormatReader.cpp"
  81. #include "format/juce_AudioFormatReaderSource.cpp"
  82. #include "format/juce_AudioFormatWriter.cpp"
  83. #include "format/juce_AudioSubsectionReader.cpp"
  84. #include "sampler/juce_Sampler.cpp"
  85. #include "codecs/juce_AiffAudioFormat.cpp"
  86. #include "codecs/juce_CoreAudioFormat.cpp"
  87. #include "codecs/juce_FlacAudioFormat.cpp"
  88. #include "codecs/juce_MP3AudioFormat.cpp"
  89. #include "codecs/juce_OggVorbisAudioFormat.cpp"
  90. #include "codecs/juce_QuickTimeAudioFormat.cpp"
  91. #include "codecs/juce_WavAudioFormat.cpp"
  92. #include "codecs/juce_WindowsMediaAudioFormat.cpp"
  93. // END_AUTOINCLUDE
  94. END_JUCE_NAMESPACE