[Scummvm-cvs-logs] CVS: scummvm/backends/midi adlib.cpp,1.31,1.32
Jamieson Christian
jamieson630 at users.sourceforge.net
Thu Jul 10 23:26:15 CEST 2003
Update of /cvsroot/scummvm/scummvm/backends/midi
In directory sc8-pr-cvs1:/tmp/cvs-serv25290/scummvm/backends/midi
Modified Files:
adlib.cpp
Log Message:
Fix for Bug [766984]: FOA: Adlib sound distortion
Added check for OOB note numbers when instantiating
Adlib registers with frequency information. Must check
WHY exactly we're getting OOB note numbers (and *way*
OOB, at that).
Index: adlib.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/midi/adlib.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- adlib.cpp 4 Jul 2003 13:16:47 -0000 1.31
+++ adlib.cpp 11 Jul 2003 06:25:37 -0000 1.32
@@ -1244,6 +1244,7 @@
int i;
note2 = (note >> 7) - 4;
+ note2 = (note2 < 128) ? note2 : 0;
oct = (note2 / 12);
if (oct > 7)
More information about the Scummvm-git-logs
mailing list