NDS: fix chan osc

This commit is contained in:
tildearrow 2025-03-09 16:19:13 -05:00
parent ca89b5beb8
commit 804e8b7fb8

View file

@ -400,6 +400,9 @@ namespace nds_sound_emu
i+=cycle-1; i+=cycle-1;
if (m_loutput!=loutput || m_routput!=routput) {
m_oscBuf->putSample(i,(loutput+routput)>>1);
}
if (m_loutput!=loutput) { if (m_loutput!=loutput) {
blip_add_delta(m_bb[0],i,m_loutput-loutput); blip_add_delta(m_bb[0],i,m_loutput-loutput);
m_loutput=loutput; m_loutput=loutput;
@ -408,9 +411,6 @@ namespace nds_sound_emu
blip_add_delta(m_bb[1],i,m_routput-routput); blip_add_delta(m_bb[1],i,m_routput-routput);
m_routput=routput; m_routput=routput;
} }
if (m_loutput!=loutput || m_routput!=routput) {
m_oscBuf->putSample(i,(loutput+routput)>>1);
}
} }
} }
m_lastts = timestamp; m_lastts = timestamp;