[Scummvm-cvs-logs] CVS: scummvm sound.cpp,1.118,1.119
Max Horn
fingolfin at users.sourceforge.net
Mon Jul 29 08:09:14 CEST 2002
Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv12225
Modified Files:
sound.cpp
Log Message:
fixed DOTT voice problem (I hope); still this section of the code seems... fishy
Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound.cpp,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -d -r1.118 -r1.119
--- sound.cpp 28 Jul 2002 15:35:26 -0000 1.118
+++ sound.cpp 29 Jul 2002 15:08:45 -0000 1.119
@@ -678,13 +678,15 @@
error("startSfxSound: cannot read %d bytes", size);
return -1;
}
+ // FIXME - why is this code here? playSfxSound Already should do the conversion
for (i = 0; i < size; i++) {
// Fixme: From WinCE port
- if (_sound_volume_sfx != 100)
- data[i] = _sound_volume_sfx * data[i] / 100;
+ if (_sound_volume_sfx != 256)
+ data[i] = _sound_volume_sfx * data[i] / 256;
data[i] ^= 0x80;
}
+
return playSfxSound(data, size, 1000000 / (256 - rate));
}
More information about the Scummvm-git-logs
mailing list