Added a second S3 ViRGE/DX card, this one with VBE 2.0 BIOS;

Added the ability to use a standalone MPU-401 if the selected sound card is not SB16 or AWE32.
This commit is contained in:
OBattler
2017-06-03 20:32:58 +02:00
parent 85714741ab
commit 224368b791
12 changed files with 255 additions and 15 deletions

View File

@@ -30,6 +30,7 @@
#include "win/plat_joystick.h"
#include "win/plat_midi.h"
#include "sound/snd_dbopl.h"
#include "sound/snd_mpu401.h"
#include "sound/snd_opl.h"
#include "sound/sound.h"
#include "video/video.h"
@@ -976,6 +977,7 @@ static void loadconfig_sound(void)
sound_card_current = 0;
midi_id = config_get_int(cat, "midi_host_device", 0);
mpu401_standalone_enable = !!config_get_int(cat, "mpu401_standalone", 0);
SSI2001 = !!config_get_int(cat, "ssi2001", 0);
GAMEBLASTER = !!config_get_int(cat, "gameblaster", 0);
@@ -2004,6 +2006,15 @@ static void saveconfig_sound(void)
config_set_int(cat, "midi_host_device", midi_id);
}
if (mpu401_standalone_enable == 0)
{
config_delete_var(cat, "mpu401_standalone");
}
else
{
config_set_int(cat, "mpu401_standalone", mpu401_standalone_enable);
}
if (SSI2001 == 0)
{
config_delete_var(cat, "ssi2001");