aboutsummaryrefslogtreecommitdiff
path: root/sound/softsynth/opl/dosbox.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-05-05 22:34:04 +0000
committerJohannes Schickel2009-05-05 22:34:04 +0000
commit6f840550b917499ca5c66597f4eae1003b1b7a37 (patch)
treeb2bfbe1a36b3f5413507483eef53d18667a5b774 /sound/softsynth/opl/dosbox.cpp
parent625f41c135a2dc9b242443a874370e5273ecb638 (diff)
downloadscummvm-rg350-6f840550b917499ca5c66597f4eae1003b1b7a37.tar.gz
scummvm-rg350-6f840550b917499ca5c66597f4eae1003b1b7a37.tar.bz2
scummvm-rg350-6f840550b917499ca5c66597f4eae1003b1b7a37.zip
Dual OPL2 initialization bugfix.
svn-id: r40339
Diffstat (limited to 'sound/softsynth/opl/dosbox.cpp')
-rw-r--r--sound/softsynth/opl/dosbox.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/softsynth/opl/dosbox.cpp b/sound/softsynth/opl/dosbox.cpp
index 6e2177a843..eff0ec4b55 100644
--- a/sound/softsynth/opl/dosbox.cpp
+++ b/sound/softsynth/opl/dosbox.cpp
@@ -213,6 +213,11 @@ bool OPL::init(int rate) {
break;
case kDualOpl2:
+ _handler = new OPL3::Handler();
+ // Setup opl3 mode in the hander
+ _handler->writeReg(0x105, 1);
+ break;
+
case kOpl3:
_handler = new OPL3::Handler();
break;