From 9f4cb080f6d1845b7879d5ace57fbdedc0e006cf Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 10 Aug 2008 17:20:03 +0200 Subject: Print some song infos when key 'i' is pressed Users won't need these information, but I'm interested in them ;) --- src/main.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index e2b687c..9cea800 100644 --- a/src/main.c +++ b/src/main.c @@ -544,6 +544,33 @@ int main (int argc, char **argv) { BarStationFromGenre (&ph); break; + case 'i': + if (curStation == NULL || curSong == NULL) { + BarUiMsg ("No song playing.\n"); + break; + } + /* print debug-alike infos */ + printf ("Song infos:\n" + "album:\t%s\n" + "artist:\t%s\n" + "audioUrl:\t%s\n" + "fileGain:\t%f\n" + "focusTraitId:\t%s\n" + "identity:\t%s\n" + "matchingSeed:\t%s\n" + "musicId:\t%s\n" + "rating:\t%i\n" + "stationId:\t%s\n" + "title:\t%s\n" + "userSeed:\t%s\n", + curSong->album, curSong->artist, curSong->audioUrl, + curSong->fileGain, curSong->focusTraitId, + curSong->identity, curSong->matchingSeed, + curSong->musicId, curSong->rating, + curSong->stationId, curSong->title, + curSong->userSeed); + break; + case 'l': if (curStation == NULL || curSong == NULL) { BarUiMsg ("No song playing.\n"); -- cgit v1.2.3