aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bacca2002-04-05 06:08:22 +0000
committerNicolas Bacca2002-04-05 06:08:22 +0000
commit4a3f14b2f7eda3c3abed20ab48eb8e8355ce44b2 (patch)
treee20001d0737ad9d28f07a66c3231959e429ebff8
parenta37a4b6f3b03a5b4679805dda90554b31a48f443 (diff)
downloadscummvm-rg350-4a3f14b2f7eda3c3abed20ab48eb8e8355ce44b2.tar.gz
scummvm-rg350-4a3f14b2f7eda3c3abed20ab48eb8e8355ce44b2.tar.bz2
scummvm-rg350-4a3f14b2f7eda3c3abed20ab48eb8e8355ce44b2.zip
Fixed mp3 desynch due to a stupid cast
svn-id: r3873
-rwxr-xr-xmp3_cd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mp3_cd.cpp b/mp3_cd.cpp
index c119924dfd..0004236145 100755
--- a/mp3_cd.cpp
+++ b/mp3_cd.cpp
@@ -162,7 +162,7 @@ uint32 calc_cd_file_offset(int start_frame) {
//mad_timer_t timer; - recode with timer
/* Constant bit rate - perhaps not fully accurate */
- frame_size = (float)144 * _mad_header.bitrate / _mad_header.samplerate;
+ frame_size = 144 * _mad_header.bitrate / _mad_header.samplerate;
offset = (long)((float)start_frame / (float)CD_FPS * 1000 /
(float)((float)1152 / (float)_mad_header.samplerate * 1000) *
(float)(frame_size + 0.5));