force non integer math to make loom work properly with vorbis again

svn-id: r5355
This commit is contained in:
Jonathan Gray 2002-10-31 00:32:54 +00:00
parent 3de70690b9
commit 605b7f1d2a

View File

@ -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);
}