diff options
Diffstat (limited to 'readtags.cpp')
-rw-r--r-- | readtags.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/readtags.cpp b/readtags.cpp new file mode 100644 index 0000000..b5a3ef4 --- /dev/null +++ b/readtags.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; + } +} |