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.

123 lines
4.5KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 6 technical preview.
  4. Copyright (c) 2020 - Raw Material Software Limited
  5. You may use this code under the terms of the GPL v3
  6. (see www.gnu.org/licenses).
  7. For this technical preview, this file is not subject to commercial licensing.
  8. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  9. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  10. DISCLAIMED.
  11. ==============================================================================
  12. */
  13. /*******************************************************************************
  14. The block below describes the properties of this module, and is read by
  15. the Projucer to automatically generate project code that uses it.
  16. For details about the syntax and how to create or use a module, see the
  17. JUCE Module Format.txt file.
  18. BEGIN_JUCE_MODULE_DECLARATION
  19. ID: juce_audio_formats
  20. vendor: juce
  21. version: 6.0.0
  22. name: JUCE audio file format codecs
  23. description: Classes for reading and writing various audio file formats.
  24. website: http://www.juce.com/juce
  25. license: GPL/Commercial
  26. dependencies: juce_audio_basics
  27. OSXFrameworks: CoreAudio CoreMIDI QuartzCore AudioToolbox
  28. iOSFrameworks: AudioToolbox QuartzCore
  29. END_JUCE_MODULE_DECLARATION
  30. *******************************************************************************/
  31. #pragma once
  32. #define JUCE_AUDIO_FORMATS_H_INCLUDED
  33. #include <juce_audio_basics/juce_audio_basics.h>
  34. //==============================================================================
  35. /** Config: JUCE_USE_FLAC
  36. Enables the FLAC audio codec classes (available on all platforms).
  37. If your app doesn't need to read FLAC files, you might want to disable this to
  38. reduce the size of your codebase and build time.
  39. */
  40. #ifndef JUCE_USE_FLAC
  41. #define JUCE_USE_FLAC 1
  42. #endif
  43. /** Config: JUCE_USE_OGGVORBIS
  44. Enables the Ogg-Vorbis audio codec classes (available on all platforms).
  45. If your app doesn't need to read Ogg-Vorbis files, you might want to disable this to
  46. reduce the size of your codebase and build time.
  47. */
  48. #ifndef JUCE_USE_OGGVORBIS
  49. #define JUCE_USE_OGGVORBIS 1
  50. #endif
  51. /** Config: JUCE_USE_MP3AUDIOFORMAT
  52. Enables the software-based MP3AudioFormat class.
  53. IMPORTANT DISCLAIMER: By choosing to enable the JUCE_USE_MP3AUDIOFORMAT flag and to compile
  54. this MP3 code into your software, you do so AT YOUR OWN RISK! By doing so, you are agreeing
  55. that Raw Material Software Limited is in no way responsible for any patent, copyright, or other
  56. legal issues that you may suffer as a result.
  57. The code in juce_MP3AudioFormat.cpp is NOT guaranteed to be free from infringements of 3rd-party
  58. intellectual property. If you wish to use it, please seek your own independent advice about the
  59. legality of doing so. If you are not willing to accept full responsibility for the consequences
  60. of using this code, then do not enable this setting.
  61. */
  62. #ifndef JUCE_USE_MP3AUDIOFORMAT
  63. #define JUCE_USE_MP3AUDIOFORMAT 0
  64. #endif
  65. /** Config: JUCE_USE_LAME_AUDIO_FORMAT
  66. Enables the LameEncoderAudioFormat class.
  67. */
  68. #ifndef JUCE_USE_LAME_AUDIO_FORMAT
  69. #define JUCE_USE_LAME_AUDIO_FORMAT 0
  70. #endif
  71. /** Config: JUCE_USE_WINDOWS_MEDIA_FORMAT
  72. Enables the Windows Media SDK codecs.
  73. */
  74. #ifndef JUCE_USE_WINDOWS_MEDIA_FORMAT
  75. #define JUCE_USE_WINDOWS_MEDIA_FORMAT 1
  76. #endif
  77. #if ! JUCE_MSVC
  78. #undef JUCE_USE_WINDOWS_MEDIA_FORMAT
  79. #define JUCE_USE_WINDOWS_MEDIA_FORMAT 0
  80. #endif
  81. //==============================================================================
  82. #include "format/juce_AudioFormatReader.h"
  83. #include "format/juce_AudioFormatWriter.h"
  84. #include "format/juce_MemoryMappedAudioFormatReader.h"
  85. #include "format/juce_AudioFormat.h"
  86. #include "format/juce_AudioFormatManager.h"
  87. #include "format/juce_AudioFormatReaderSource.h"
  88. #include "format/juce_AudioSubsectionReader.h"
  89. #include "format/juce_BufferingAudioFormatReader.h"
  90. #include "codecs/juce_AiffAudioFormat.h"
  91. #include "codecs/juce_CoreAudioFormat.h"
  92. #include "codecs/juce_FlacAudioFormat.h"
  93. #include "codecs/juce_LAMEEncoderAudioFormat.h"
  94. #include "codecs/juce_MP3AudioFormat.h"
  95. #include "codecs/juce_OggVorbisAudioFormat.h"
  96. #include "codecs/juce_WavAudioFormat.h"
  97. #include "codecs/juce_WindowsMediaAudioFormat.h"
  98. #include "sampler/juce_Sampler.h"