aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2009-05-12 18:45:17 +0000
committerJohannes Schickel2009-05-12 18:45:17 +0000
commita586017bea6810f0e7c3ea76f482914b0196602f (patch)
tree67f01dff52684c3c2e92196f42e2e68b9867f1ee /engines
parent4f0768b9096aab65961d697ca60d6e939f36eae2 (diff)
downloadscummvm-rg350-a586017bea6810f0e7c3ea76f482914b0196602f.tar.gz
scummvm-rg350-a586017bea6810f0e7c3ea76f482914b0196602f.tar.bz2
scummvm-rg350-a586017bea6810f0e7c3ea76f482914b0196602f.zip
Fall back to plain OPL2 emulation, when Dual OPL2 isn't available.
svn-id: r40497
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sfx/softseq/adlib.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sci/sfx/softseq/adlib.cpp b/engines/sci/sfx/softseq/adlib.cpp
index 92a04f065e..ab4b6750b5 100644
--- a/engines/sci/sfx/softseq/adlib.cpp
+++ b/engines/sci/sfx/softseq/adlib.cpp
@@ -84,6 +84,12 @@ int MidiDriver_Adlib::open(bool isSCI0) {
_opl = OPL::Config::create(isStereo() ? OPL::Config::kDualOpl2 : OPL::Config::kOpl2);
+ // Try falling back to mono, thus plain OPL2 emualtor, when no Dual OPL2 is available.
+ if (!_opl && _stereo) {
+ _stereo = false;
+ _opl = OPL::Config::create(OPL::Config::kOpl2);
+ }
+
if (!_opl)
return -1;