diff options
author | 0kmg <9137159+0kmg@users.noreply.github.com> | 2022-03-02 21:28:00 -0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-03 17:28:00 +1100 |
commit | c5deb2281883807105ec4fc0dbd52a01c4fce2c4 (patch) | |
tree | 719a7535479d0679ad2edc19d0ee16a070dab672 /src/devices/sound | |
parent | a08184c8f04c614d92d4a91029a3446baf04fefe (diff) |
nes_apu.cpp: Don't zero DPCM channel's output. Fixes some audio popping. (#9363)
Diffstat (limited to 'src/devices/sound')
-rw-r--r-- | src/devices/sound/nes_apu.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/devices/sound/nes_apu.cpp b/src/devices/sound/nes_apu.cpp index 0866c3dc27a..a7e8a3066f7 100644 --- a/src/devices/sound/nes_apu.cpp +++ b/src/devices/sound/nes_apu.cpp @@ -408,7 +408,6 @@ static inline void apu_dpcmreset(apu_t::dpcm_t *chan) chan->bits_left = chan->length << 3; chan->irq_occurred = false; chan->enabled = true; /* Fixed * Proper DPCM channel ENABLE/DISABLE flag behaviour*/ - chan->vol = 0; /* Fixed * DPCM DAC resets itself when restarted */ } /* OUTPUT DPCM WAVE SAMPLE (VALUES FROM 0 to +127) */ @@ -435,7 +434,6 @@ void nesapu_device::apu_dpcm(apu_t::dpcm_t *chan) if (!chan->length) { chan->enabled = false; /* Fixed * Proper DPCM channel ENABLE/DISABLE flag behaviour*/ - chan->vol = 0; /* Fixed * DPCM DAC resets itself when restarted */ if (chan->regs[0] & 0x40) apu_dpcmreset(chan); else |