mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
Fixed mp3 desynch due to a stupid cast
svn-id: r3873
This commit is contained in:
parent
a37a4b6f3b
commit
4a3f14b2f7
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user