From 09726e6290a4ccdbd5360dcb80339e6472dd3d00 Mon Sep 17 00:00:00 2001 From: cam900 Date: Sun, 2 Apr 2023 14:34:10 +0900 Subject: [PATCH] Fix pitch --- extern/vgsound_emu-modified/vgsound_emu/src/k053260/k053260.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/vgsound_emu-modified/vgsound_emu/src/k053260/k053260.cpp b/extern/vgsound_emu-modified/vgsound_emu/src/k053260/k053260.cpp index 2ee4efac3..9c8d9434b 100644 --- a/extern/vgsound_emu-modified/vgsound_emu/src/k053260/k053260.cpp +++ b/extern/vgsound_emu-modified/vgsound_emu/src/k053260/k053260.cpp @@ -80,7 +80,7 @@ void k053260_core::voice_t::tick(u32 cycle) { m_bitpos -= 8; } - m_counter = 0x1000 - bitfield(m_pitch, 0, 12); + m_counter = (m_counter - 0x1000) + bitfield(m_pitch, 0, 12); } // calculate output