1
/***************************************************************************
2
copyright : (C) 2006 by Martin Aumueller
3
email : aumuell@reserv.at
4
***************************************************************************/
6
/***************************************************************************
7
* This library is free software; you can redistribute it and/or modify *
8
* it under the terms of the GNU Lesser General Public License version *
9
* 2.1 as published by the Free Software Foundation. *
11
* This library is distributed in the hope that it will be useful, but *
12
* WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14
* Lesser General Public License for more details. *
16
* You should have received a copy of the GNU Lesser General Public *
17
* License along with this library; if not, write to the Free Software *
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
20
***************************************************************************/
22
#include "taglib_speexfiletyperesolver.h"
23
#include "speexfile.h"
27
TagLib::File *SpeexFileTypeResolver::createFile(const char *fileName,
29
TagLib::AudioProperties::ReadStyle propertiesStyle) const
31
const char *ext = strrchr(fileName, '.');
32
if(ext && !strcasecmp(ext, ".spx"))
34
TagLib::Ogg::Speex::File *f = new TagLib::Ogg::Speex::File(fileName, readProperties, propertiesStyle);