mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 01:25:33 -07:00
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:
@@ -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 } }
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user