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.

43 lines
1.8KB

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