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 #include "../../core/juce_StandardHeader.h"
30 #include "juce_AudioFormat.h"
33 //==============================================================================
34 AudioFormat::AudioFormat (const String
& name
, const StringArray
& extensions
)
36 fileExtensions (extensions
)
40 AudioFormat::~AudioFormat()
44 //==============================================================================
45 bool AudioFormat::canHandleFile (const File
& f
)
47 for (int i
= 0; i
< fileExtensions
.size(); ++i
)
48 if (f
.hasFileExtension (fileExtensions
[i
]))
54 const String
& AudioFormat::getFormatName() const { return formatName
; }
55 const StringArray
& AudioFormat::getFileExtensions() const { return fileExtensions
; }
56 bool AudioFormat::isCompressed() { return false; }
57 StringArray
AudioFormat::getQualityOptions() { return StringArray(); }