From e4ee5d2d01d2db8571fca4fb38f77b6ea9fa5978 Mon Sep 17 00:00:00 2001 From: Jasmine Iwanek Date: Sun, 14 Jul 2024 00:51:26 -0400 Subject: [PATCH] Update snd_opl_nuked.c --- src/sound/snd_opl_nuked.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sound/snd_opl_nuked.c b/src/sound/snd_opl_nuked.c index a9a91d962..8125341e2 100644 --- a/src/sound/snd_opl_nuked.c +++ b/src/sound/snd_opl_nuked.c @@ -686,7 +686,7 @@ static void slot_calc_fb(opl3_slot *slot) { if (slot->channel->fb != 0x00) - slot->fbmod = (slot->prout + slot->out) >> (0x09 - slot->chan->fb); + slot->fbmod = (slot->prout + slot->out) >> (0x09 - slot->channel->fb); else slot->fbmod = 0; @@ -960,9 +960,9 @@ channel_write_c0(chan_t *channel, uint8_t data) channel->chc = ((data >> 6) & 0x01) ? ~0 : 0; channel->chd = ((data >> 7) & 0x01) ? ~0 : 0; } else { - channel->cha = ch->chb = (uint16_t) ~0; + channel->cha = channel->chb = (uint16_t) ~0; // TODO: Verify on real chip if DAC2 output is disabled in compat mode - channel->chc = ch->chd = 0; + channel->chc = channel->chd = 0; } #if OPL_ENABLE_STEREOEXT