[Scummvm-cvs-logs] SF.net SVN: scummvm:[40497] scummvm/trunk/engines/sci/sfx/softseq/adlib.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Tue May 12 20:45:17 CEST 2009
Revision: 40497
http://scummvm.svn.sourceforge.net/scummvm/?rev=40497&view=rev
Author: lordhoto
Date: 2009-05-12 18:45:17 +0000 (Tue, 12 May 2009)
Log Message:
-----------
Fall back to plain OPL2 emulation, when Dual OPL2 isn't available.
Modified Paths:
--------------
scummvm/trunk/engines/sci/sfx/softseq/adlib.cpp
Modified: scummvm/trunk/engines/sci/sfx/softseq/adlib.cpp
===================================================================
--- scummvm/trunk/engines/sci/sfx/softseq/adlib.cpp 2009-05-12 18:42:44 UTC (rev 40496)
+++ scummvm/trunk/engines/sci/sfx/softseq/adlib.cpp 2009-05-12 18:45:17 UTC (rev 40497)
@@ -84,6 +84,12 @@
_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;
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