Add TAL-Reverb-II plugin to test
[juce-lv2.git] / juce / source / src / audio / audio_file_formats / juce_QuickTimeAudioFormat.h
blobeaea70ac7e8229dfef4cbdb3891820625cbdfd8e
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_QUICKTIMEAUDIOFORMAT_JUCEHEADER__
27 #define __JUCE_QUICKTIMEAUDIOFORMAT_JUCEHEADER__
29 #include "juce_AudioFormat.h"
30 #if JUCE_QUICKTIME
33 //==============================================================================
34 /**
35 Uses QuickTime to read the audio track a movie or media file.
37 As well as QuickTime movies, this should also manage to open other audio
38 files that quicktime can understand, like mp3, m4a, etc.
40 @see AudioFormat
42 class JUCE_API QuickTimeAudioFormat : public AudioFormat
44 public:
45 //==============================================================================
46 /** Creates a format object. */
47 QuickTimeAudioFormat();
49 /** Destructor. */
50 ~QuickTimeAudioFormat();
52 //==============================================================================
53 const Array <int> getPossibleSampleRates();
54 const Array <int> getPossibleBitDepths();
55 bool canDoStereo();
56 bool canDoMono();
58 //==============================================================================
59 AudioFormatReader* createReaderFor (InputStream* sourceStream,
60 bool deleteStreamIfOpeningFails);
62 AudioFormatWriter* createWriterFor (OutputStream* streamToWriteTo,
63 double sampleRateToUse,
64 unsigned int numberOfChannels,
65 int bitsPerSample,
66 const StringPairArray& metadataValues,
67 int qualityOptionIndex);
70 private:
71 JUCE_LEAK_DETECTOR (QuickTimeAudioFormat);
75 #endif
76 #endif // __JUCE_QUICKTIMEAUDIOFORMAT_JUCEHEADER__