diff options
author | Aaron Giles <aaron@aarongiles.com> | 2008-11-02 02:36:52 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2008-11-02 02:36:52 +0000 |
commit | 1763eae62be175bc5206c0fe00675aaa7fd68e5f (patch) | |
tree | dbede20267eb4a3022dcb25a0e96ab95e2a8c5d1 | |
parent | 272416355e0d42bf346797e2f8e303436f231a5e (diff) |
Fix NES APU to work with high sample rates (don't know the bug #)
-rw-r--r-- | src/emu/sound/nes_apu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/sound/nes_apu.c b/src/emu/sound/nes_apu.c index 88d951a6256..d19297c8591 100644 --- a/src/emu/sound/nes_apu.c +++ b/src/emu/sound/nes_apu.c @@ -476,7 +476,8 @@ INLINE void apu_regwrite(struct nesapu_info *info,int address, uint8 value) ** dereferences and load up the other triregs */ - info->APU.tri.write_latency = 3; + /* used to be 3, but now we run the clock faster, so base it on samples/sync */ + info->APU.tri.write_latency = (info->samps_per_sync + 239) / 240; if (info->APU.tri.enabled) { |