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.

66 lines
2.9KB

  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. #if JUCE_USE_MP3AUDIOFORMAT
  19. //==============================================================================
  20. /**
  21. Software-based MP3 decoding format (doesn't currently provide an encoder).
  22. IMPORTANT DISCLAIMER: By choosing to enable the JUCE_USE_MP3AUDIOFORMAT flag and
  23. to compile the MP3 code into your software, you do so AT YOUR OWN RISK! By doing so,
  24. you are agreeing that Raw Material Software is in no way responsible for any patent,
  25. copyright, or other legal issues that you may suffer as a result.
  26. The code in juce_MP3AudioFormat.cpp is NOT guaranteed to be free from infringements of 3rd-party
  27. intellectual property. If you wish to use it, please seek your own independent advice about the
  28. legality of doing so. If you are not willing to accept full responsibility for the consequences
  29. of using this code, then do not enable the JUCE_USE_MP3AUDIOFORMAT setting.
  30. */
  31. class MP3AudioFormat : public AudioFormat
  32. {
  33. public:
  34. //==============================================================================
  35. MP3AudioFormat();
  36. ~MP3AudioFormat();
  37. //==============================================================================
  38. Array<int> getPossibleSampleRates();
  39. Array<int> getPossibleBitDepths();
  40. bool canDoStereo();
  41. bool canDoMono();
  42. bool isCompressed();
  43. StringArray getQualityOptions();
  44. //==============================================================================
  45. AudioFormatReader* createReaderFor (InputStream*, bool deleteStreamIfOpeningFails);
  46. AudioFormatWriter* createWriterFor (OutputStream*, double sampleRateToUse,
  47. unsigned int numberOfChannels, int bitsPerSample,
  48. const StringPairArray& metadataValues, int qualityOptionIndex);
  49. };
  50. #endif