Projects
Multimedia
flacon
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 21
View file
flacon.changes
Changed
@@ -1,4 +1,14 @@ ------------------------------------------------------------------- +Mon Jan 2 19:38:40 UTC 2017 - lazy.kent@opensuse.org + +- Update to 2.1.1. + * Fix: Flacon does not properly detect the corresponding audio + file. + * Now toolbar is unhidable. + * Translations updated. + * Small fixes. + +------------------------------------------------------------------- Sun Oct 9 19:47:33 UTC 2016 - lazy.kent@opensuse.org - Update to 2.1.0.
View file
flacon.spec
Changed
@@ -1,7 +1,7 @@ # # spec file for package flacon # -# Copyright (c) 2016 Packman Team <packman@links2linux.de> +# Copyright (c) 2017 Packman Team <packman@links2linux.de> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: flacon -Version: 2.1.0 +Version: 2.1.1 Release: 0 Summary: Split compressed Audio CD images to tracks License: LGPL-2.1+
View file
flacon-2.1.0.tar.gz/.gitignore -> flacon-2.1.1.tar.gz/.gitignore
Changed
@@ -16,4 +16,6 @@ CMakeLists.txt.user* /build /clang_check -*.kate-swp \ No newline at end of file +*.kate-swp +*.pro.user +*.pro.user.*
View file
flacon-2.1.0.tar.gz/CMakeLists.txt -> flacon-2.1.1.tar.gz/CMakeLists.txt
Changed
@@ -29,7 +29,7 @@ set(MAJOR_VERSION 2) set(MINOR_VERSION 1) -set(PATCH_VERSION 0) +set(PATCH_VERSION 1) set(FLACON_VERSION ${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}) add_definitions(-DFLACON_MAJOR_VERSION=\"${MAJOR_VERSION}\")
View file
flacon-2.1.0.tar.gz/disk.cpp -> flacon-2.1.1.tar.gz/disk.cpp
Changed
@@ -562,7 +562,7 @@ cueReaders << c; } - if (cueReaders.count() && cueReaders.first().diskCount() == 1) + if (cueReaders.count() == 1 && cueReaders.first().diskCount() == 1) { loadFromCue(cueReaders.first().disk(0), true); return;
View file
flacon-2.1.0.tar.gz/gui/configdialog/configdialog.cpp -> flacon-2.1.1.tar.gz/gui/configdialog/configdialog.cpp
Changed
@@ -105,8 +105,6 @@ ************************************************/ void ConfigDialog::pagesListInit() { - QListWidget *pagesList = this->pagesList; - QListWidgetItem *item = new QListWidgetItem(pagesList); item->setText(tr("General")); item->setIcon(Project::getIcon("go-home", "gohome", ":/icons/32/settings-main"));
View file
flacon-2.1.0.tar.gz/gui/mainwindow.cpp -> flacon-2.1.1.tar.gz/gui/mainwindow.cpp
Changed
@@ -59,6 +59,7 @@ setWindowIcon(QIcon::fromTheme("flacon")); setAcceptDrops(true); setAcceptDrops(true); + this->setContextMenuPolicy(Qt::NoContextMenu); outPatternButton->setToolTip(outPatternEdit->toolTip()); outDirEdit->setToolTip(actionSelectResultDir->toolTip());
View file
flacon-2.1.0.tar.gz/inputaudiofile.cpp -> flacon-2.1.1.tar.gz/inputaudiofile.cpp
Changed
@@ -95,6 +95,17 @@ mDuration = other.mDuration; } +InputAudioFile &InputAudioFile::operator =(const InputAudioFile &other) +{ + mFileName = other.mFileName; + mValid = other.mValid; + mErrorString = other.mErrorString; + mSampleRate = other.mSampleRate; + mCdQuality = other.mCdQuality; + mDuration = other.mDuration; + return *this; +} + /************************************************
View file
flacon-2.1.0.tar.gz/inputaudiofile.h -> flacon-2.1.1.tar.gz/inputaudiofile.h
Changed
@@ -51,6 +51,7 @@ public: explicit InputAudioFile(const QString &fileName); InputAudioFile(const InputAudioFile &other); + InputAudioFile &operator =(const InputAudioFile &other); QString fileName() const { return mFileName; } bool isValid() const { return mValid; }
View file
flacon-2.1.0.tar.gz/outformats/flac.cpp -> flacon-2.1.1.tar.gz/outformats/flac.cpp
Changed
@@ -86,7 +86,7 @@ if (!track->genre().isEmpty()) args << "--tag" << QString("genre=%1").arg(track->genre()); if (!track->date().isEmpty()) args << "--tag" << QString("date=%1").arg(track->date()); if (!track->title().isEmpty()) args << "--tag" << QString("title=%1").arg(track->title()); - if (!track->title().isEmpty()) args << "--tag" << QString("comment=%1").arg(track->comment()); + if (!track->comment().isEmpty()) args << "--tag" << QString("comment=%1").arg(track->comment()); if (!track->disk()->discId().isEmpty()) args << "--tag" << QString("discId=%1").arg(track->disk()->discId()); args << "--tag" << QString("TRACKNUMBER=%1").arg(track->trackNum()); args << "--tag" << QString("TOTALTRACKS=%1").arg(track->disk()->count());
View file
flacon-2.1.0.tar.gz/outformats/ogg.cpp -> flacon-2.1.1.tar.gz/outformats/ogg.cpp
Changed
@@ -206,6 +206,6 @@ int x1 = int(value); double y1= kbps[x1 + 1]; double y2= kbps[x1 + 2]; - int bitrate = round(((y2 - y1) * (value - x1) + y1)); + int bitrate = round((y2 - y1) * (value - x1) + y1); oggQualityLabel->setText(QString("(~%1 kbps)").arg(bitrate)); }
View file
flacon-2.1.0.tar.gz/tests/testflacon.cpp -> flacon-2.1.1.tar.gz/tests/testflacon.cpp
Changed
@@ -56,6 +56,7 @@ #define USE_DEV_RANDOM 1 #endif + /************************************************ * ************************************************/ @@ -1979,8 +1980,156 @@ "FileTag(2).wav"; } +struct TestCueFile { + QString name; + QString fileTag; + QString fileTag2; +}; +Q_DECLARE_METATYPE(TestCueFile) + + +struct TestFindCueFileData { + QList<TestCueFile> cueFiles; + QStringList audioFiles; + QString chekAudioFile; + QString expected; +}; +Q_DECLARE_METATYPE(TestFindCueFileData) + +/************************************************ + + ************************************************/ +void TestFlacon::testFindCueFile() +{ + QFETCH(TestFindCueFileData, test); + + static int dirNum = 0; + dirNum++; + QString dir = QString("%1testFindAudioFile/%2/").arg(mTmpDir).arg(dirNum, 4, 20, QChar('0')); + QDir(dir).mkpath("."); + clearDir(dir); + + + foreach (QString f, test.audioFiles) + { + QFile(mCdAudioFile).link(dir + f.trimmed()); + } + + foreach (TestCueFile cueFile, test.cueFiles) + { + QStringList cue; + cue << "REM DATE 2013"; + cue << "REM DISCID 123456789"; + cue << "REM COMMENT \"ExactAudioCopy v0.99pb4\""; + cue << "PERFORMER \"Artist\""; + cue << "FILE \"" + cueFile.fileTag.trimmed() +"\" WAVE"; + cue << " TRACK 01 AUDIO"; + cue << " TITLE \"Song01\""; + cue << " INDEX 01 00:00:00"; + + if (!cueFile.fileTag2.isEmpty()) + { + cue << "FILE \"" + cueFile.fileTag2.trimmed() +"\" WAVE"; + cue << " TRACK 01 AUDIO"; + cue << " TITLE \"Song01\""; + cue << " INDEX 01 00:00:00"; + } + writeTextFile(dir + cueFile.name, cue); + } + + InputAudioFile audio(dir + test.chekAudioFile); + Disk disk; + disk.setAudioFile(audio); + QString real = disk.cueFile(); + QString expected = dir + test.expected; + QCOMPARE(real, expected); +} + + +/************************************************ + + ************************************************/ +void TestFlacon::testFindCueFile_data() +{ + + QTest::addColumn<TestFindCueFileData>("test"); + TestFindCueFileData test; + + // ------------------------------------- + test = TestFindCueFileData(); + test.cueFiles.append(TestCueFile()); + test.cueFiles.last().name = "1.cue"; + test.cueFiles.last().fileTag= "FILE \"1.wav\" WAVE"; + + test.audioFiles << "1.wav"; + test.chekAudioFile = "1.wav"; + test.expected = "1.cue"; + QTest::newRow("1.cue 1.wav") << test; + // ------------------------------------- + test = TestFindCueFileData(); + test.cueFiles.append(TestCueFile()); + test.cueFiles.last().name = "1.cue"; + test.cueFiles.last().fileTag= "FILE \"1.wav\" WAVE"; + test.cueFiles.append(TestCueFile()); + test.cueFiles.last().name = "2.cue"; + test.cueFiles.last().fileTag= "FILE \"2.wav\" WAVE"; + test.audioFiles << "1.wav"; + test.audioFiles << "2.wav"; + + test.chekAudioFile = "1.wav"; + test.expected = "1.cue"; + QTest::newRow("1.cue 2.cue *1.wav* 2.wav") << test; + + + // ------------------------------------- + test = TestFindCueFileData(); + test.cueFiles.append(TestCueFile()); + test.cueFiles.last().name = "1.cue"; + test.cueFiles.last().fileTag= "FILE \"1.wav\" WAVE"; + + test.cueFiles.append(TestCueFile()); + test.cueFiles.last().name = "2.cue"; + test.cueFiles.last().fileTag= "FILE \"2.wav\" WAVE"; + + test.audioFiles << "1.wav"; + test.audioFiles << "2.wav"; + + test.chekAudioFile = "2.wav"; + test.expected = "2.cue"; + QTest::newRow("1.cue 2.cue 1.wav *2.wav*") << test; + + + // ------------------------------------- + test = TestFindCueFileData(); + test.cueFiles.append(TestCueFile()); + test.cueFiles.last().name = "multi.cue"; + test.cueFiles.last().fileTag = "FILE \"1.wav\" WAVE"; + test.cueFiles.last().fileTag2= "FILE \"2.wav\" WAVE"; + + test.audioFiles << "multi_1.wav"; + test.audioFiles << "multi_2.wav"; + + test.chekAudioFile = "multi_1.wav"; + test.expected = "multi.cue"; + QTest::newRow("multi.cue multi_1.wav multi_2.wav") << test; + + + // ------------------------------------- + test = TestFindCueFileData(); + test.cueFiles.append(TestCueFile()); + test.cueFiles.last().name = "multi.cue"; + test.cueFiles.last().fileTag = "FILE \"1.wav\" WAVE"; + test.cueFiles.last().fileTag2= "FILE \"2.wav\" WAVE"; + + test.audioFiles << "multi_1.wav"; + test.audioFiles << "multi_2.wav"; + + test.chekAudioFile = "multi_2.wav"; + test.expected = "multi.cue"; + QTest::newRow("multi.cue multi_1.wav multi_2.wav") << test; +} QTEST_MAIN(TestFlacon)
View file
flacon-2.1.0.tar.gz/tests/testflacon.h -> flacon-2.1.1.tar.gz/tests/testflacon.h
Changed
@@ -99,6 +99,10 @@ void testFindAudioFile_data(); void testFindAudioFile(); + void testFindCueFile_data(); + void testFindCueFile(); + + void testConvert(); private:
View file
flacon-2.1.0.tar.gz/translations/flacon_es.ts -> flacon-2.1.1.tar.gz/translations/flacon_es.ts
Changed
@@ -980,7 +980,7 @@ </message> <message> <source>Delete current pattern from history</source> - <translation type="unfinished"/> + <translation>Eliminar el patrĂ³n actual del historial</translation> </message> </context> <context>
View file
flacon-2.1.0.tar.gz/translations/flacon_fr.ts -> flacon-2.1.1.tar.gz/translations/flacon_fr.ts
Changed
@@ -72,7 +72,7 @@ <message> <source>Bug tracker %1</source> <comment>About dialog, About tab</comment> - <translation>Gestionnaire de bogues %1</translation> + <translation>Gestionnaire de bogues : %1</translation> </message> <message> <source>Flacon is translated into many languages thanks to the work of the Flacon translation teams on <a href='%1'>Transifex</a>.</source>
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.