From c4b23e86436b14afec3e9daa441a89e89a7ea31e Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 25 Aug 2023 16:28:20 -0500 Subject: [PATCH] K007232: fix (?) loop marker being output issue #1409 --- .../vgsound_emu/src/k007232/k007232.cpp | 2 +- src/gui/chanOsc.cpp | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/extern/vgsound_emu-modified/vgsound_emu/src/k007232/k007232.cpp b/extern/vgsound_emu-modified/vgsound_emu/src/k007232/k007232.cpp index 02aa3460..6f9e9b81 100644 --- a/extern/vgsound_emu-modified/vgsound_emu/src/k007232/k007232.cpp +++ b/extern/vgsound_emu-modified/vgsound_emu/src/k007232/k007232.cpp @@ -67,7 +67,7 @@ void k007232_core::voice_t::tick(u8 ne) } } - m_out = s8(m_data) - 0x40; // send to output (ASD/BSD) pin + m_out = s8(m_data&0x7f) - 0x40; // send to output (ASD/BSD) pin } else { diff --git a/src/gui/chanOsc.cpp b/src/gui/chanOsc.cpp index aa7c91b5..5ca97f47 100644 --- a/src/gui/chanOsc.cpp +++ b/src/gui/chanOsc.cpp @@ -448,6 +448,7 @@ void FurnaceGUI::drawChanOsc() { float maxLevel=-1.0f; float dcOff=0.0f; unsigned short needlePos=buf->needle; + //unsigned short needlePosOrig=needlePos; for (int i=0; iinBuf[i]=(double)buf->data[(unsigned short)(needlePos-displaySize*2+((i*displaySize*2)/FURNACE_FFT_SIZE))]/32768.0; } @@ -475,10 +476,7 @@ void FurnaceGUI::drawChanOsc() { } chanOscPitch[ch]=(float)point/32.0f; - /* - String cPhase=fmt::sprintf("%d cphase: %f vol: %f",point,phase,chanOscVol[ch]); - dl->AddText(inRect.Min,0xffffffff,cPhase.c_str()); - */ + needlePos-=displaySize; for (unsigned short i=0; i=needlePosOrig)?"WARN":"OK"); + //dl->AddText(inRect.Min,0xffffffff,cPhase.c_str()); } ImU32 color=ImGui::GetColorU32(chanOscColor); if (chanOscUseGrad) {