openshot-audio  0.1.7
juce_MP3AudioFormat.h
Go to the documentation of this file.
1 /*
2  ==============================================================================
3 
4  This file is part of the JUCE library.
5  Copyright (c) 2015 - ROLI Ltd.
6 
7  Permission is granted to use this software under the terms of either:
8  a) the GPL v2 (or any later version)
9  b) the Affero GPL v3
10 
11  Details of these licenses can be found at: www.gnu.org/licenses
12 
13  JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
14  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15  A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 
17  ------------------------------------------------------------------------------
18 
19  To release a closed-source product which uses JUCE, commercial licenses are
20  available: visit www.juce.com for more information.
21 
22  ==============================================================================
23 */
24 
25 #if JUCE_USE_MP3AUDIOFORMAT || DOXYGEN
26 
27 //==============================================================================
41 class MP3AudioFormat : public AudioFormat
42 {
43 public:
44  //==============================================================================
45  MP3AudioFormat();
46  ~MP3AudioFormat();
47 
48  //==============================================================================
51  bool canDoStereo() override;
52  bool canDoMono() override;
53  bool isCompressed() override;
54  StringArray getQualityOptions() override;
55 
56  //==============================================================================
57  AudioFormatReader* createReaderFor (InputStream*, bool deleteStreamIfOpeningFails) override;
58 
59  AudioFormatWriter* createWriterFor (OutputStream*, double sampleRateToUse,
60  unsigned int numberOfChannels, int bitsPerSample,
61  const StringPairArray& metadataValues, int qualityOptionIndex) override;
62 };
63 
64 #endif
AudioFormatReader
Definition: juce_AudioFormatReader.h:38
InputStream
Definition: juce_InputStream.h:41
AudioFormat
Definition: juce_AudioFormat.h:36
AudioFormat::isCompressed
virtual bool isCompressed()
Definition: juce_AudioFormat.cpp:50
Array< int >
AudioFormat::getPossibleSampleRates
virtual Array< int > getPossibleSampleRates()=0
AudioFormat::canDoStereo
virtual bool canDoStereo()=0
AudioFormat::getQualityOptions
virtual StringArray getQualityOptions()
Definition: juce_AudioFormat.cpp:51
AudioFormat::canDoMono
virtual bool canDoMono()=0
OutputStream
Definition: juce_OutputStream.h:42
AudioFormat::createWriterFor
virtual AudioFormatWriter * createWriterFor(OutputStream *streamToWriteTo, double sampleRateToUse, unsigned int numberOfChannels, int bitsPerSample, const StringPairArray &metadataValues, int qualityOptionIndex)=0
AudioFormat::getPossibleBitDepths
virtual Array< int > getPossibleBitDepths()=0
StringPairArray
Definition: juce_StringPairArray.h:39
AudioFormatWriter
Definition: juce_AudioFormatWriter.h:41
StringArray
Definition: juce_StringArray.h:39
AudioFormat::createReaderFor
virtual AudioFormatReader * createReaderFor(InputStream *sourceStream, bool deleteStreamIfOpeningFails)=0