aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/rgscan
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-10-17 09:22:30 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-10-17 09:22:30 +0000
commit3f249105c9cd0ced6d97d930f89f4135a352985b (patch)
tree9c0dea1630bd50544fc5b4e071f7bad46dc936e0 /src/plugins/General/rgscan
parent80744caa532299c97291833eb24569ed0efa7f06 (diff)
downloadqmmp-3f249105c9cd0ced6d97d930f89f4135a352985b.tar.gz
qmmp-3f249105c9cd0ced6d97d930f89f4135a352985b.tar.bz2
qmmp-3f249105c9cd0ced6d97d930f89f4135a352985b.zip
rgscan: added wavpack support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3805 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/rgscan')
-rw-r--r--src/plugins/General/rgscan/rgscandialog.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/plugins/General/rgscan/rgscandialog.cpp b/src/plugins/General/rgscan/rgscandialog.cpp
index c097eadad..1652236ac 100644
--- a/src/plugins/General/rgscan/rgscandialog.cpp
+++ b/src/plugins/General/rgscan/rgscandialog.cpp
@@ -32,6 +32,7 @@
#include <taglib/xiphcomment.h>
#include <taglib/oggflacfile.h>
#include <taglib/vorbisfile.h>
+#include <taglib/wavpackfile.h>
#include "rgscanner.h"
#include "gain_analysis.h"
#include "rgscandialog.h"
@@ -66,7 +67,8 @@ RGScanDialog::RGScanDialog(QList <PlayListTrack *> tracks, QWidget *parent) : Q
if(ext == "mp3" || //mpeg 1 layer 3
ext == "flac" || //native flac
ext == "oga" || //ogg flac
- ext == "ogg") //ogg vorbis
+ ext == "ogg" || //ogg vorbis
+ ext == "wv") //wavpack
{
paths.append(track->url());
QString name = formatter.parse(track);
@@ -318,17 +320,23 @@ void RGScanDialog::on_writeButton_clicked()
writeVorbisComment(file.xiphComment(true), item);
file.save();
}
- else if(ext == "oga")
+ else if(ext == "oga") //ogg flac
{
TagLib::Ogg::FLAC::File file(qPrintable(item->url));
writeVorbisComment(file.tag(), item);
file.save();
}
- else if(ext == "ogg")
+ else if(ext == "ogg") //ogg vorbis
{
TagLib::Ogg::Vorbis::File file(qPrintable(item->url));
writeVorbisComment(file.tag(), item);
file.save();
}
+ else if(ext == "wv") //wavpack
+ {
+ TagLib::WavPack::File file(qPrintable(item->url));
+ writeAPETag(file.APETag(true), item);
+ file.save();
+ }
}
}