From f40cf8eb8f7f46df2b422739447d5cd1b404f71c Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Mon, 10 Apr 2006 05:26:22 +0000 Subject: [PATCH] make scanner-driver show reslution with millisecond accuracy --- src/scanner-driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scanner-driver.c b/src/scanner-driver.c index c4bcf65a..229facbb 100644 --- a/src/scanner-driver.c +++ b/src/scanner-driver.c @@ -84,10 +84,11 @@ CONFIG config; * \param pmp3 mp3 file to dump */ void dump_mp3(MP3FILE *pmp3) { - int min,sec; + int min,sec,msec; min=(pmp3->song_length/1000) / 60; sec = (pmp3->song_length/1000) - (60 * min); + msec = pmp3->song_length - ((pmp3->song_length/1000)*1000); printf("path..........: %s\n",pmp3->path); printf("fname.........: %s\n",pmp3->fname); @@ -106,7 +107,7 @@ void dump_mp3(MP3FILE *pmp3) { printf("bitrate.......: %dkb\n",pmp3->bitrate); printf("samplerate....: %d\n",pmp3->samplerate); - printf("length........: %dms (%d:%02d)\n",pmp3->song_length,min,sec); + printf("length........: %dms (%d:%02d.%03d)\n",pmp3->song_length,min,sec,msec); printf("size..........: %d\n",pmp3->file_size); printf("track.........: %d of %d\n",pmp3->track,pmp3->total_tracks);