diff options
author | Jonathan Gray | 2002-10-31 00:32:54 +0000 |
---|---|---|
committer | Jonathan Gray | 2002-10-31 00:32:54 +0000 |
commit | 605b7f1d2ae5c5c417d0015a9e57a6ff0b0ec188 (patch) | |
tree | f628d90ad2db81c4dc7e0e9a4fbd5e6aaf28276e | |
parent | 3de70690b92e472b4e6d75d5233fa1b596298f7b (diff) | |
download | scummvm-rg350-605b7f1d2ae5c5c417d0015a9e57a6ff0b0ec188.tar.gz scummvm-rg350-605b7f1d2ae5c5c417d0015a9e57a6ff0b0ec188.tar.bz2 scummvm-rg350-605b7f1d2ae5c5c417d0015a9e57a6ff0b0ec188.zip |
force non integer math to make loom work properly with vorbis again
svn-id: r5355
-rw-r--r-- | scumm/sound.cpp | 4 |
1 files 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); } |