[Scummvm-cvs-logs] SF.net SVN: scummvm:[40342] scummvm/trunk/sound/softsynth/opl/dosbox.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Wed May 6 02:40:37 CEST 2009
Revision: 40342
http://scummvm.svn.sourceforge.net/scummvm/?rev=40342&view=rev
Author: lordhoto
Date: 2009-05-06 00:40:37 +0000 (Wed, 06 May 2009)
Log Message:
-----------
Fix feedback/algorithm register write bugs in Dual OPL2 mode.
Modified Paths:
--------------
scummvm/trunk/sound/softsynth/opl/dosbox.cpp
Modified: scummvm/trunk/sound/softsynth/opl/dosbox.cpp
===================================================================
--- scummvm/trunk/sound/softsynth/opl/dosbox.cpp 2009-05-05 23:40:54 UTC (rev 40341)
+++ scummvm/trunk/sound/softsynth/opl/dosbox.cpp 2009-05-06 00:40:37 UTC (rev 40342)
@@ -329,7 +329,7 @@
return;
// Only allow 4 waveforms
- if (reg >= 0xE0)
+ if (reg >= 0xE0 && reg <= 0xE8)
val &= 3;
// Write to the timer?
@@ -337,8 +337,8 @@
return;
// Enabling panning
- if (reg >= 0xC0 && reg < 0xC8) {
- val &= 7;
+ if (reg >= 0xC0 && reg <= 0xC8) {
+ val &= 15;
val |= index ? 0xA0 : 0x50;
}
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