From 605b7f1d2ae5c5c417d0015a9e57a6ff0b0ec188 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 31 Oct 2002 00:32:54 +0000 Subject: force non integer math to make loom work properly with vorbis again svn-id: r5355 --- scumm/sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 8cbd8e673b..19704e882d 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -1621,9 +1621,9 @@ Sound::VorbisTrackInfo::VorbisTrackInfo(File *file) { } int Sound::VorbisTrackInfo::play(SoundMixer *mixer, int start, int delay) { - ov_pcm_seek(&_ov_file, start * ov_info(&_ov_file, -1)->rate / 75); + ov_pcm_seek(&_ov_file, start * ov_info(&_ov_file, -1)->rate / 75.0); return mixer->playVorbis(NULL, &_ov_file, - delay * ov_info(&_ov_file, -1)->rate / 75, + delay * ov_info(&_ov_file, -1)->rate / 75.0, true); } -- cgit v1.2.3