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.

104 lines
4.0KB

  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. #import <QTKit/QTKit.h>
  36. #include <AudioToolbox/AudioToolbox.h>
  37. #undef Component
  38. #undef Point
  39. #elif JUCE_IOS
  40. #import <AudioToolbox/AudioToolbox.h>
  41. #import <AVFoundation/AVFoundation.h>
  42. //==============================================================================
  43. #elif JUCE_WINDOWS
  44. #if JUCE_QUICKTIME
  45. /* If you've got an include error here, you probably need to install the QuickTime SDK and
  46. add its header directory to your include path.
  47. Alternatively, if you don't need any QuickTime services, just set the JUCE_QUICKTIME flag to 0.
  48. */
  49. #include <Movies.h>
  50. #include <QTML.h>
  51. #include <QuickTimeComponents.h>
  52. #include <MediaHandlers.h>
  53. #include <ImageCodec.h>
  54. /* If you've got QuickTime 7 installed, then these COM objects should be found in
  55. the "\Program Files\Quicktime" directory. You'll need to add this directory to
  56. your include search path to make these import statements work.
  57. */
  58. #import <QTOLibrary.dll>
  59. #import <QTOControl.dll>
  60. #if JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  61. #pragma comment (lib, "QTMLClient.lib")
  62. #endif
  63. #endif
  64. //==============================================================================
  65. #elif JUCE_ANDROID
  66. BEGIN_JUCE_NAMESPACE
  67. #include "../juce_core/native/juce_android_JNIHelpers.h"
  68. END_JUCE_NAMESPACE
  69. #undef JUCE_QUICKTIME
  70. #endif
  71. // START_AUTOINCLUDE format/*.cpp, sampler/*.cpp, codecs/*.cpp
  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 "sampler/juce_Sampler.cpp"
  79. #include "codecs/juce_AiffAudioFormat.cpp"
  80. #include "codecs/juce_CoreAudioFormat.cpp"
  81. #include "codecs/juce_FlacAudioFormat.cpp"
  82. #include "codecs/juce_OggVorbisAudioFormat.cpp"
  83. #include "codecs/juce_QuickTimeAudioFormat.cpp"
  84. #include "codecs/juce_WavAudioFormat.cpp"
  85. // END_AUTOINCLUDE