More fixes.
This commit is contained in:
@@ -2024,6 +2024,7 @@ sb_16_init(UNUSED(const device_t *info))
|
||||
if (device_get_config_int("receive_input"))
|
||||
midi_in_handler(1, sb_dsp_input_msg, sb_dsp_input_sysex, &sb->dsp);
|
||||
|
||||
sb->gameport = gameport_add(&gameport_pnp_device);
|
||||
sb->gameport_addr = 0x200;
|
||||
|
||||
return sb;
|
||||
@@ -2130,6 +2131,7 @@ sb_16_compat_init(const device_t *info)
|
||||
mpu401_init(sb->mpu, 0, 0, M_UART, info->local);
|
||||
sb_dsp_set_mpu(&sb->dsp, sb->mpu);
|
||||
|
||||
sb->gameport = gameport_add(&gameport_pnp_device);
|
||||
sb->gameport_addr = 0x200;
|
||||
|
||||
return sb;
|
||||
@@ -2228,6 +2230,7 @@ sb_awe32_init(UNUSED(const device_t *info))
|
||||
if (device_get_config_int("receive_input"))
|
||||
midi_in_handler(1, sb_dsp_input_msg, sb_dsp_input_sysex, &sb->dsp);
|
||||
|
||||
sb->gameport = gameport_add(&gameport_pnp_device);
|
||||
sb->gameport_addr = 0x200;
|
||||
|
||||
return sb;
|
||||
|
||||
@@ -219,7 +219,7 @@ sound_card_get_from_internal_name(const char *s)
|
||||
void
|
||||
sound_card_init(void)
|
||||
{
|
||||
if (sound_cards[sound_card_current[0]].device)
|
||||
if ((sound_card_current[0] != SOUND_INTERNAL) && (sound_cards[sound_card_current[0]].device))
|
||||
device_add(sound_cards[sound_card_current[0]].device);
|
||||
if (sound_cards[sound_card_current[1]].device)
|
||||
device_add(sound_cards[sound_card_current[1]].device);
|
||||
@@ -512,14 +512,14 @@ sound_reset(void)
|
||||
filter_cd_audio_p = NULL;
|
||||
|
||||
sound_set_cd_volume(65535, 65535);
|
||||
|
||||
/* Reset the MPU-401 already loaded flag and the chain of input/output handlers. */
|
||||
midi_in_handlers_clear();
|
||||
}
|
||||
|
||||
void
|
||||
sound_card_reset(void)
|
||||
{
|
||||
/* Reset the MPU-401 already loaded flag and the chain of input/output handlers. */
|
||||
midi_in_handlers_clear();
|
||||
|
||||
sound_card_init();
|
||||
|
||||
if (mpu401_standalone_enable)
|
||||
|
||||
Reference in New Issue
Block a user