[Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.46,1.47

Jonathan Gray khalek at users.sourceforge.net
Wed Oct 30 16:33:07 CET 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv17884

Modified Files:
	sound.cpp 
Log Message:
force non integer math to make loom work properly with vorbis again

Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/sound.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- sound.cpp	28 Oct 2002 12:56:42 -0000	1.46
+++ sound.cpp	31 Oct 2002 00:32:54 -0000	1.47
@@ -1621,9 +1621,9 @@
 }
 
 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);
 }
 





More information about the Scummvm-git-logs mailing list