Add TAL-Reverb-II plugin to test
[juce-lv2.git] / juce / source / src / audio / audio_file_formats / juce_FlacAudioFormat.h
blob1bbe01c90661b6d1209cdd0a66f11996ecee59f3
1 /*
2 ==============================================================================
4 This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 Copyright 2004-11 by Raw Material Software Ltd.
7 ------------------------------------------------------------------------------
9 JUCE can be redistributed and/or modified under the terms of the GNU General
10 Public License (Version 2), as published by the Free Software Foundation.
11 A copy of the license is included in the JUCE distribution, or can be found
12 online at www.gnu.org/licenses.
14 JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 ------------------------------------------------------------------------------
20 To release a closed-source product which uses JUCE, commercial licenses are
21 available: visit www.rawmaterialsoftware.com/juce for more information.
23 ==============================================================================
26 #ifndef __JUCE_FLACAUDIOFORMAT_JUCEHEADER__
27 #define __JUCE_FLACAUDIOFORMAT_JUCEHEADER__
29 #include "juce_AudioFormat.h" // (must keep this outside the conditional define)
31 #if JUCE_USE_FLAC || defined (DOXYGEN)
34 //==============================================================================
35 /**
36 Reads and writes the lossless-compression FLAC audio format.
38 To compile this, you'll need to set the JUCE_USE_FLAC flag in juce_Config.h,
39 and make sure your include search path and library search path are set up to find
40 the FLAC header files and static libraries.
42 @see AudioFormat
44 class JUCE_API FlacAudioFormat : public AudioFormat
46 public:
47 //==============================================================================
48 FlacAudioFormat();
49 ~FlacAudioFormat();
51 //==============================================================================
52 const Array <int> getPossibleSampleRates();
53 const Array <int> getPossibleBitDepths();
54 bool canDoStereo();
55 bool canDoMono();
56 bool isCompressed();
57 StringArray getQualityOptions();
59 //==============================================================================
60 AudioFormatReader* createReaderFor (InputStream* sourceStream,
61 bool deleteStreamIfOpeningFails);
63 AudioFormatWriter* createWriterFor (OutputStream* streamToWriteTo,
64 double sampleRateToUse,
65 unsigned int numberOfChannels,
66 int bitsPerSample,
67 const StringPairArray& metadataValues,
68 int qualityOptionIndex);
69 private:
70 JUCE_LEAK_DETECTOR (FlacAudioFormat);
74 #endif
75 #endif // __JUCE_FLACAUDIOFORMAT_JUCEHEADER__