Support for reading/writing tags from Monkey's Audio files

Patch by Alex Novichkov, slightly modified by me (code formatting + tests).


git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1145554 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Lukáš Lalinský
2010-07-03 11:32:27 +00:00
parent 8792f8df82
commit ab1bc06172
17 changed files with 843 additions and 4 deletions

View File

@ -1,6 +1,10 @@
/***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : wheeler@kde.org
copyright : (C) 2010 by Alex Novichkov
email : novichko@atnet.ru
(added APE file support)
***************************************************************************/
/***************************************************************************
@ -44,6 +48,7 @@
#include "trueaudiofile.h"
#include "aifffile.h"
#include "wavfile.h"
#include "apefile.h"
using namespace TagLib;
@ -156,6 +161,7 @@ StringList FileRef::defaultFileExtensions()
l.append("aif");
l.append("aiff");
l.append("wav");
l.append("ape");
return l;
}
@ -254,6 +260,8 @@ File *FileRef::create(FileName fileName, bool readAudioProperties,
return new RIFF::WAV::File(fileName, readAudioProperties, audioPropertiesStyle);
if(ext == "AIFF")
return new RIFF::AIFF::File(fileName, readAudioProperties, audioPropertiesStyle);
if(ext == "APE")
return new APE::File(fileName, readAudioProperties, audioPropertiesStyle);
}
return 0;