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/ape/taglib_monkeysaudiofiletype...

22 lines
648 B

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