OK then, bitrate is in 1000s of bits per second, not 1024s of bits per second.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6657 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7d0933b3c3
commit
cfda23517e
1 changed files with 1 additions and 1 deletions
|
@ -719,7 +719,7 @@ bool audio_load_track(int offset, bool start_play, int peek_offset)
|
||||||
|
|
||||||
/* Calculate track length (in ms) and estimate the bitrate (in kbit/s) */
|
/* Calculate track length (in ms) and estimate the bitrate (in kbit/s) */
|
||||||
tracks[track_widx].id3.length=(totalsamples/tracks[track_widx].id3.frequency)*1000;
|
tracks[track_widx].id3.length=(totalsamples/tracks[track_widx].id3.frequency)*1000;
|
||||||
tracks[track_widx].id3.bitrate=(tracks[track_widx].id3.frequency*bytespersample)/(1024/8);
|
tracks[track_widx].id3.bitrate=(tracks[track_widx].id3.frequency*bytespersample)/(1000/8);
|
||||||
|
|
||||||
lseek(fd, 0, SEEK_SET);
|
lseek(fd, 0, SEEK_SET);
|
||||||
strncpy(tracks[track_widx].id3.path,trackname,sizeof(tracks[track_widx].id3.path));
|
strncpy(tracks[track_widx].id3.path,trackname,sizeof(tracks[track_widx].id3.path));
|
||||||
|
|
Loading…
Reference in a new issue