aboutsummaryrefslogtreecommitdiffstats
path: root/test-main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test-main.cpp')
-rw-r--r--test-main.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/test-main.cpp b/test-main.cpp
new file mode 100644
index 0000000..b5a3ef4
--- /dev/null
+++ b/test-main.cpp
@@ -0,0 +1,30 @@
+#include "AudioFile.h"
+
+#include <iostream>
+
+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 << "Compilation: " << f.compilation() << endl;
+ cout << endl;
+ }
+}