[Scummvm-cvs-logs] SF.net SVN: scummvm: [23204] scummvm/trunk/engines/scumm/sound.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Tue Jun 20 23:36:14 CEST 2006
Revision: 23204
Author: eriktorbjorn
Date: 2006-06-20 14:36:09 -0700 (Tue, 20 Jun 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=23204&view=rev
Log Message:
-----------
Applied my own patch #1508018. I don't know for sure that it's exactly right,
but it improves the Adlib sound effects in early games, e.g. the door opening
and closing sounds in Indy 3 and MI1 floppy. There still appears to be some
kind of looping/repeating mechanism that we don't implement, though.
Modified Paths:
--------------
scummvm/trunk/engines/scumm/sound.cpp
Modified: scummvm/trunk/engines/scumm/sound.cpp
===================================================================
--- scummvm/trunk/engines/scumm/sound.cpp 2006-06-20 21:13:23 UTC (rev 23203)
+++ scummvm/trunk/engines/scumm/sound.cpp 2006-06-20 21:36:09 UTC (rev 23204)
@@ -1952,7 +1952,7 @@
| current_instr[ch][0];
if (!freq)
freq = 0x80;
- freq <<= ((current_instr[ch][1] >> 2) & 7) + 1;
+ freq <<= (((current_instr[ch][1] >> 2) + 1) & 7);
int note = -11;
while (freq >= 0x100) {
note += 12;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list