From eaf97231f3ed17b2f81142e13ae8860ccb604af4 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 20 Aug 2012 04:03:31 +0200 Subject: Rename readtags to readmusictags. --- Makefile | 6 +++--- readmusictags.cpp | 35 +++++++++++++++++++++++++++++++++++ readtags.cpp | 35 ----------------------------------- 3 files changed, 38 insertions(+), 38 deletions(-) create mode 100644 readmusictags.cpp delete mode 100644 readtags.cpp diff --git a/Makefile b/Makefile index 5e51e2e..2b12c34 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,10 @@ LDFLAGS += $(shell pkg-config --libs taglib icu-i18n) CXXFLAGS ?= -O3 -pipe -fomit-frame-pointer -march=native CXXFLAGS += $(shell pkg-config --cflags taglib icu-uc) -all: readtags organizemusic +all: readmusictags organizemusic -readtags: AudioFile.cpp AudioFile.h readtags.cpp +readmusictags: AudioFile.cpp AudioFile.h readmusictags.cpp organizemusic: AudioFile.cpp AudioFile.h organizemusic.cpp clean: - rm -vf readtags organizemusic + rm -vf readmusictags organizemusic diff --git a/readmusictags.cpp b/readmusictags.cpp new file mode 100644 index 0000000..62312f6 --- /dev/null +++ b/readmusictags.cpp @@ -0,0 +1,35 @@ +#include "AudioFile.h" + +#include + +using namespace std; + +int main(int argc, char *argv[]) +{ + for (int i = 1; i < argc; ++i) { + AudioFile f(argv[i]); + if (!f.isValid()) { + cout << argv[i] << " is not valid." << endl; + continue; + } + cout << "Filename: " << f.filename() << endl; + cout << "Artist: " << f.artist() << endl; + cout << "Composer: " << f.composer() << endl; + cout << "Album: " << f.album() << endl; + cout << "Album Artist: " << f.albumArtist() << endl; + cout << "Title: " << f.title() << endl; + cout << "Genre: " << f.genre() << endl; + cout << "Comment: " << f.comment() << endl; + cout << "Track: " << f.track() << endl; + cout << "Disc: " << f.disc() << endl; + cout << "Bpm: " << f.bpm() << endl; + cout << "Year: " << f.year() << endl; + cout << "Length: " << f.length() << endl; + cout << "Bitrate: " << f.bitrate() << endl; + cout << "Sample Rate: " << f.sampleRate() << endl; + cout << "Channels: " << f.channels() << endl; + cout << "Compilation: " << f.compilation() << endl; + cout << endl; + } + return 0; +} diff --git a/readtags.cpp b/readtags.cpp deleted file mode 100644 index 62312f6..0000000 --- a/readtags.cpp +++ /dev/null @@ -1,35 +0,0 @@ -#include "AudioFile.h" - -#include - -using namespace std; - -int main(int argc, char *argv[]) -{ - for (int i = 1; i < argc; ++i) { - AudioFile f(argv[i]); - if (!f.isValid()) { - cout << argv[i] << " is not valid." << endl; - continue; - } - cout << "Filename: " << f.filename() << endl; - cout << "Artist: " << f.artist() << endl; - cout << "Composer: " << f.composer() << endl; - cout << "Album: " << f.album() << endl; - cout << "Album Artist: " << f.albumArtist() << endl; - cout << "Title: " << f.title() << endl; - cout << "Genre: " << f.genre() << endl; - cout << "Comment: " << f.comment() << endl; - cout << "Track: " << f.track() << endl; - cout << "Disc: " << f.disc() << endl; - cout << "Bpm: " << f.bpm() << endl; - cout << "Year: " << f.year() << endl; - cout << "Length: " << f.length() << endl; - cout << "Bitrate: " << f.bitrate() << endl; - cout << "Sample Rate: " << f.sampleRate() << endl; - cout << "Channels: " << f.channels() << endl; - cout << "Compilation: " << f.compilation() << endl; - cout << endl; - } - return 0; -} -- cgit v1.2.3-59-g8ed1b