SAGA: Fall back to the default Adlib driver for non-DOS versions of ITE
Only the DOS version of ITE uses the Miles audio driver
This commit is contained in:
parent
3a29dfaebf
commit
6a49654d86
1 changed files with 6 additions and 2 deletions
|
@ -48,11 +48,15 @@ MusicDriver::MusicDriver() : _isGM(false) {
|
||||||
|
|
||||||
switch (_driverType) {
|
switch (_driverType) {
|
||||||
case MT_ADLIB:
|
case MT_ADLIB:
|
||||||
_milesAudioMode = true;
|
|
||||||
if (Common::File::exists("INSTR.AD") && Common::File::exists("INSTR.OPL")) {
|
if (Common::File::exists("INSTR.AD") && Common::File::exists("INSTR.OPL")) {
|
||||||
|
_milesAudioMode = true;
|
||||||
_driver = Audio::MidiDriver_Miles_AdLib_create("INSTR.AD", "INSTR.OPL");
|
_driver = Audio::MidiDriver_Miles_AdLib_create("INSTR.AD", "INSTR.OPL");
|
||||||
} else {
|
} else if (Common::File::exists("INSTR.AD") && Common::File::exists("INSTR.OPL")) {
|
||||||
|
_milesAudioMode = true;
|
||||||
_driver = Audio::MidiDriver_Miles_AdLib_create("SAMPLE.AD", "SAMPLE.OPL");
|
_driver = Audio::MidiDriver_Miles_AdLib_create("SAMPLE.AD", "SAMPLE.OPL");
|
||||||
|
} else {
|
||||||
|
_milesAudioMode = false;
|
||||||
|
MidiPlayer::createDriver();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MT_MT32:
|
case MT_MT32:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue