openshot-audio  0.1.4
juce_LAMEEncoderAudioFormat.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_LAME_AUDIO_FORMAT || defined (DOXYGEN)
26 
27 //==============================================================================
41 class JUCE_API LAMEEncoderAudioFormat : public AudioFormat
42 {
43 public:
47  LAMEEncoderAudioFormat (const File& lameExecutableToUse);
48  ~LAMEEncoderAudioFormat();
49 
50  bool canHandleFile (const File&);
53  bool canDoStereo();
54  bool canDoMono();
55  bool isCompressed();
57 
58  AudioFormatReader* createReaderFor (InputStream*, bool deleteStreamIfOpeningFails);
59 
60  AudioFormatWriter* createWriterFor (OutputStream*, double sampleRateToUse,
61  unsigned int numberOfChannels, int bitsPerSample,
62  const StringPairArray& metadataValues, int qualityOptionIndex);
63 
64 private:
65  File lameApp;
66  class Writer;
67 
68  JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LAMEEncoderAudioFormat)
69 };
70 
71 #endif
Definition: juce_StringPairArray.h:39
Definition: juce_InputStream.h:41
virtual bool isCompressed()
Definition: juce_AudioFormat.cpp:50
#define JUCE_API
Definition: juce_StandardHeader.h:139
virtual Array< int > getPossibleSampleRates()=0
Definition: juce_AudioFormatWriter.h:41
virtual bool canDoStereo()=0
Definition: juce_AudioFormatReader.h:38
Definition: juce_OutputStream.h:42
virtual StringArray getQualityOptions()
Definition: juce_AudioFormat.cpp:51
Definition: juce_AudioFormat.h:36
Definition: juce_StringArray.h:39
virtual bool canDoMono()=0
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
Definition: juce_PlatformDefs.h:198
virtual AudioFormatWriter * createWriterFor(OutputStream *streamToWriteTo, double sampleRateToUse, unsigned int numberOfChannels, int bitsPerSample, const StringPairArray &metadataValues, int qualityOptionIndex)=0
virtual bool canHandleFile(const File &fileToTest)
Definition: juce_AudioFormat.cpp:39
Definition: juce_File.h:45
virtual AudioFormatReader * createReaderFor(InputStream *sourceStream, bool deleteStreamIfOpeningFails)=0
virtual Array< int > getPossibleBitDepths()=0