mirror of
https://github.com/taglib/taglib.git
synced 2025-07-23 15:34:30 -04:00
TrueAudio support.
This is last of the three formats implemented for libtunepimp, now used also by various players. BUG:114982 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@735116 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -34,6 +34,7 @@
|
||||
#include "mpcfile.h"
|
||||
#include "wavpackfile.h"
|
||||
#include "speexfile.h"
|
||||
#include "trueaudiofile.h"
|
||||
|
||||
using namespace TagLib;
|
||||
|
||||
@ -119,6 +120,7 @@ StringList FileRef::defaultFileExtensions()
|
||||
l.append("mpc");
|
||||
l.append("wv");
|
||||
l.append("spx");
|
||||
l.append("tta");
|
||||
|
||||
return l;
|
||||
}
|
||||
@ -194,7 +196,9 @@ File *FileRef::create(FileName fileName, bool readAudioProperties,
|
||||
if(s.substr(s.size() - 3, 3).upper() == ".WV")
|
||||
return new WavPack::File(fileName, readAudioProperties, audioPropertiesStyle);
|
||||
if(s.substr(s.size() - 4, 4).upper() == ".SPX")
|
||||
return new WavPack::File(fileName, readAudioProperties, audioPropertiesStyle);
|
||||
return new Speex::File(fileName, readAudioProperties, audioPropertiesStyle);
|
||||
if(s.substr(s.size() - 4, 4).upper() == ".TTA")
|
||||
return new TrueAudio::File(fileName, readAudioProperties, audioPropertiesStyle);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user