SCUMM: (INDY3/MAC) - add launcher option for lq music

(just attaching the alread existing option)
This commit is contained in:
athrxx 2024-02-09 20:54:17 +01:00
parent 569bb43b06
commit 7d48995d44
3 changed files with 7 additions and 2 deletions

View File

@ -773,7 +773,7 @@ const ExtraGuiOptions ScummMetaEngine::getExtraGuiOptions(const Common::String &
// The low quality music in Loom was probably intended for low-end
// Macs. It plays only one channel, instead of three.
if (target.empty() || (gameid == "loom" && platform == Common::kPlatformMacintosh && extra != "Steam")) {
if (target.empty() || ((gameid == "loom" || gameid == "indy3") && platform == Common::kPlatformMacintosh && extra != "Steam")) {
options.push_back(macV3LowQualityMusic);
}

View File

@ -2170,6 +2170,8 @@ void ScummEngine::setupMusic(int midi, const Common::Path &macInstrumentFile) {
_musicEngine = new Player_V4A(this, _mixer);
} else if (_game.platform == Common::kPlatformMacintosh && _game.id == GID_INDY3) {
_musicEngine = new Player_Mac_Indy3(this, _mixer);
if (ConfMan.hasKey("mac_v3_low_quality_music") && ConfMan.getBool("mac_v3_low_quality_music"))
_musicEngine->setQuality(Player_Mac_Indy3::kQualLo);
_sound->_musicType = MDT_MACINTOSH;
} else if (_game.platform == Common::kPlatformMacintosh && _game.id == GID_LOOM) {
_musicEngine = new Player_V3M(this, _mixer, ConfMan.getBool("mac_v3_low_quality_music"));

View File

@ -858,7 +858,10 @@ void ScummEngine::setSoundCardVarToCurrentConfig() {
// 4 Roland
switch (_sound->_musicType) {
case MDT_MACINTOSH:
VAR(VAR_SOUNDCARD) = (_game.id == GID_INDY3) ? 11 : 3;
if (_game.id == GID_INDY3)
VAR(VAR_SOUNDCARD) = (ConfMan.hasKey("mac_v3_low_quality_music") && ConfMan.getBool("mac_v3_low_quality_music")) ? 10 : 11;
else
VAR(VAR_SOUNDCARD) = 3;
break;
case MDT_NONE:
case MDT_PCSPK: