Minor Aztech changes (#6343)

* Switch CD audio and OPL3 filters on AZT2316 mode switch, fixes FM and CD volume control on Windows

* Add support for I/O port 630h (as used on PB Forte16 cards) to the MKE/Panasonic interface
This commit is contained in:
win2kgamer
2025-10-13 23:54:00 -05:00
committed by GitHub
parent e56eeaa9b4
commit 7ad56f0179
2 changed files with 13 additions and 2 deletions

View File

@@ -1041,6 +1041,7 @@ static const device_config_t mke_config[] = {
{ .description = "320H", .value = 0x320 },
{ .description = "330H", .value = 0x330 },
{ .description = "340H", .value = 0x340 },
{ .description = "630H", .value = 0x630 },
{ NULL }
},
.bios = { { 0 } }

View File

@@ -1040,10 +1040,20 @@ azt2316a_enable_wss(uint8_t enable, void *priv)
{
azt2316a_t *azt2316a = (azt2316a_t *) priv;
if (enable)
sound_set_cd_audio_filter(NULL, NULL);
if (enable) {
azt2316a->cur_mode = 1;
else
sound_set_cd_audio_filter(ad1848_filter_cd_audio, &azt2316a->ad1848);
azt2316a->sb->opl_mixer = azt2316a;
azt2316a->sb->opl_mix = azt1605_filter_opl;
}
else {
azt2316a->cur_mode = 0;
sound_set_cd_audio_filter(sbpro_filter_cd_audio, azt2316a->sb);
azt2316a->sb->opl_mixer = NULL;
azt2316a->sb->opl_mix = NULL;
}
}
static void