[Scummvm-git-logs] scummvm master -> 737111e9d8d5b2a6a559fc5aeefbc79e9258095c

NMIError noreply at scummvm.org
Thu Jan 5 20:18:52 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
737111e9d8 SAGA: Add OPL2 support for ItE DOS GOG and Windows


Commit: 737111e9d8d5b2a6a559fc5aeefbc79e9258095c
    https://github.com/scummvm/scummvm/commit/737111e9d8d5b2a6a559fc5aeefbc79e9258095c
Author: Coen Rampen (crampen at gmail.com)
Date: 2023-01-05T21:18:30+01:00

Commit Message:
SAGA: Add OPL2 support for ItE DOS GOG and Windows

Changed paths:
    engines/saga/music.cpp


diff --git a/engines/saga/music.cpp b/engines/saga/music.cpp
index 542223cb508..d5d1a046245 100644
--- a/engines/saga/music.cpp
+++ b/engines/saga/music.cpp
@@ -102,10 +102,16 @@ Music::Music(SagaEngine *vm, Audio::Mixer *mixer) : _vm(vm), _mixer(mixer), _par
 						_("OK"));
 					dialog.runModal();
 
-					_driver = new MidiDriver_ADLIB_Multisource(OPL::Config::kOpl3);
+					OPL::Config::OplType oplType =
+						MidiDriver_ADLIB_Multisource::detectOplType(OPL::Config::kOpl3) ? OPL::Config::kOpl3 : OPL::Config::kOpl2;
+
+					_driver = new MidiDriver_ADLIB_Multisource(oplType);
 				}
 			} else {
-				_driver = new MidiDriver_ADLIB_Multisource(OPL::Config::kOpl3);
+				OPL::Config::OplType oplType =
+					MidiDriver_ADLIB_Multisource::detectOplType(OPL::Config::kOpl3) ? OPL::Config::kOpl3 : OPL::Config::kOpl2;
+
+				_driver = new MidiDriver_ADLIB_Multisource(oplType);
 			}
 			break;
 		case MT_MT32:




More information about the Scummvm-git-logs mailing list