summaryrefslogtreecommitdiff
path: root/apps/wps.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-07-05 07:20:47 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-07-05 07:20:47 +0000
commit7402762fc021fa380368c5f6fb694d745bcdbe59 (patch)
treeeee061b98ff1abe14aca9e1882be18fa4c137425 /apps/wps.c
parentc644fc29563c3e970274471142773f403c608057 (diff)
downloadrockbox-7402762fc021fa380368c5f6fb694d745bcdbe59.tar.gz
rockbox-7402762fc021fa380368c5f6fb694d745bcdbe59.zip
Now uses the vbr flag
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1340 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/wps.c')
-rw-r--r--apps/wps.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/wps.c b/apps/wps.c
index 5228726b0f..f4872eb1a1 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -95,7 +95,7 @@ static void draw_screen(struct mp3entry* id3)
95 lcd_puts(0, l++, id3->album?id3->album:""); 95 lcd_puts(0, l++, id3->album?id3->album:"");
96 lcd_puts(0, l++, id3->artist?id3->artist:""); 96 lcd_puts(0, l++, id3->artist?id3->artist:"");
97 97
98 if(id3->bitrate == VARIABLE_BIT_RATE) 98 if(id3->vbr)
99 snprintf(buffer, sizeof(buffer), "Variable Bit Rate"); 99 snprintf(buffer, sizeof(buffer), "Variable Bit Rate");
100 else 100 else
101 snprintf(buffer, sizeof(buffer), "%d kbits", id3->bitrate); 101 snprintf(buffer, sizeof(buffer), "%d kbits", id3->bitrate);
@@ -123,6 +123,7 @@ int wps_show(void)
123 struct mp3entry* id3 = mpeg_current_track(); 123 struct mp3entry* id3 = mpeg_current_track();
124 unsigned int lastlength=0, lastsize=0, lastrate=0; 124 unsigned int lastlength=0, lastsize=0, lastrate=0;
125 int lastartist=0, lastalbum=0, lasttitle=0; 125 int lastartist=0, lastalbum=0, lasttitle=0;
126 bool lastvbr = false;
126 127
127 while ( 1 ) { 128 while ( 1 ) {
128 int i; 129 int i;
@@ -131,6 +132,7 @@ int wps_show(void)
131 if ( ( id3->length != lastlength ) || 132 if ( ( id3->length != lastlength ) ||
132 ( id3->filesize != lastsize ) || 133 ( id3->filesize != lastsize ) ||
133 ( id3->bitrate != lastrate ) || 134 ( id3->bitrate != lastrate ) ||
135 ( id3->vbr != lastvbr ) ||
134 ( (id3->artist?id3->artist[0]:0) != lastartist ) || 136 ( (id3->artist?id3->artist[0]:0) != lastartist ) ||
135 ( (id3->album?id3->album[0]:0) != lastalbum ) || 137 ( (id3->album?id3->album[0]:0) != lastalbum ) ||
136 ( (id3->title?id3->title[0]:0) != lasttitle ) ) 138 ( (id3->title?id3->title[0]:0) != lasttitle ) )