You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
soundkonverter/src/metadata/optimfrog/taglib_optimfrogfiletyperes...

22 lines
612 B

// (c) 2006 Martin Aumueller <aumuell@reserv.at>
// modified 2006 Daniel Faust <hessijames@gmail.com>
// See COPYING file for licensing information
#include "taglib_optimfrogfiletyperesolver.h"
#include <taglib/mpcfile.h>
#include <string.h>
TagLib::File *OptimFrogFileTypeResolver::createFile(const char *fileName,
bool readProperties,
TagLib::AudioProperties::ReadStyle propertiesStyle) const
{
const char *ext = strrchr(fileName, '.');
if(ext && !strcasecmp(ext, ".ofr"))
{
return new TagLib::MPC::File(fileName, readProperties, propertiesStyle);
}
return 0;
}