From a586017bea6810f0e7c3ea76f482914b0196602f Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 12 May 2009 18:45:17 +0000 Subject: Fall back to plain OPL2 emulation, when Dual OPL2 isn't available. svn-id: r40497 --- engines/sci/sfx/softseq/adlib.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit v1.2.3