From 519c571ee71d90b97e7ed1e12e38e63f22987801 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 28 Jul 2019 17:12:21 +0000 Subject: rgscan: added ogg opus support git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9018 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/rgscan/rgscandialog.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/General/rgscan/rgscandialog.cpp b/src/plugins/General/rgscan/rgscandialog.cpp index 0cb237183..78a5276d4 100644 --- a/src/plugins/General/rgscan/rgscandialog.cpp +++ b/src/plugins/General/rgscan/rgscandialog.cpp @@ -36,6 +36,7 @@ #include #include #include +#include #include "rgscanner.h" #include "gain_analysis.h" #include "rgscandialog.h" @@ -76,7 +77,8 @@ RGScanDialog::RGScanDialog(QList tracks, QWidget *parent) : Q ext == "oga" || //ogg flac ext == "ogg" || //ogg vorbis ext == "wv" || //wavpack - ext == "m4a") //aac (mp4 container) + ext == "m4a" || //aac (mp4 container) + ext == "opus") { paths.append(track->path()); QString name = formatter.format(track); @@ -434,5 +436,11 @@ void RGScanDialog::on_writeButton_clicked() writeMP4Tag(file.tag(), item); file.save(); } + else if(ext == "opus") + { + TagLib::Ogg::Opus::File file(qPrintable(item->url)); + writeVorbisComment(file.tag(), item); + file.save(); + } } } -- cgit v1.2.3-13-gbd6f