aboutsummaryrefslogtreecommitdiffstats
path: root/readtags.cpp
blob: b5a3ef4f56c949d9f6dafc020247a5d41a276418 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
	}
}