For the masochists out there,i it is now possible to select the PC Speaker

music driver. There are some other emulation modes, but I'm not sure how they
should be mapped to from our music drivers.

svn-id: r22952
This commit is contained in:
Torbjörn Andersson 2006-06-06 15:38:34 +00:00
parent c77ad1a24c
commit a0e3e208ee

View File

@ -493,7 +493,19 @@ void AgiEngine::initialize() {
memset(&opt, 0, sizeof(struct agi_options));
opt.gamerun = GAMERUN_RUNGAME;
opt.hires = true;
opt.soundemu = SOUND_EMU_NONE;
// TODO: Some sound emulation modes do not fit our current music
// drivers, and I'm not sure what they are. For now, they might
// as well be called "PC Speaker" and "Not PC Speaker".
switch (MidiDriver::detectMusicDriver(MDT_PCSPK)) {
case MD_PCSPK:
opt.soundemu = SOUND_EMU_PC;
break;
default:
opt.soundemu = SOUND_EMU_NONE;
break;
}
if (ConfMan.hasKey("render_mode"))
opt.renderMode = Common::parseRenderMode(ConfMan.get("render_mode").c_str());