From 804e8b7fb850ffb7d7dfe28822f2d57cd6a26984 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 9 Mar 2025 16:19:13 -0500 Subject: [PATCH] NDS: fix chan osc --- src/engine/platform/sound/nds.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/platform/sound/nds.cpp b/src/engine/platform/sound/nds.cpp index ef9e53200..1c778fd4f 100644 --- a/src/engine/platform/sound/nds.cpp +++ b/src/engine/platform/sound/nds.cpp @@ -400,6 +400,9 @@ namespace nds_sound_emu i+=cycle-1; + if (m_loutput!=loutput || m_routput!=routput) { + m_oscBuf->putSample(i,(loutput+routput)>>1); + } if (m_loutput!=loutput) { blip_add_delta(m_bb[0],i,m_loutput-loutput); m_loutput=loutput; @@ -408,9 +411,6 @@ namespace nds_sound_emu blip_add_delta(m_bb[1],i,m_routput-routput); m_routput=routput; } - if (m_loutput!=loutput || m_routput!=routput) { - m_oscBuf->putSample(i,(loutput+routput)>>1); - } } } m_lastts = timestamp;