From e8ca6bd4837ac418c7652a8590c32bac51c4882e Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 23 Sep 2022 22:48:55 -0500 Subject: [PATCH] one more fix --- src/engine/platform/qsound.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/platform/qsound.cpp b/src/engine/platform/qsound.cpp index 18216f03f..4f7d2545f 100644 --- a/src/engine/platform/qsound.cpp +++ b/src/engine/platform/qsound.cpp @@ -308,14 +308,14 @@ void DivPlatformQSound::tick(bool sysTick) { } chan[i].freqChanged=true; } - if (chan[i].std.duty.had) { + if (chan[i].isNewQSound && chan[i].std.duty.had) { chan[i].echo=CLAMP(chan[i].std.duty.val,0,32767); immWrite(Q1_ECHO+i,chan[i].echo&0x7fff); } - if (chan[i].std.ex1.had) { + if (chan[i].isNewQSound && chan[i].std.ex1.had) { immWrite(Q1_ECHO_FEEDBACK,chan[i].std.ex1.val&0x3fff); } - if (chan[i].std.ex2.had) { + if (chan[i].isNewQSound && chan[i].std.ex2.had) { immWrite(Q1_ECHO_LENGTH,0xfff-(2725-CLAMP(chan[i].std.ex2.val&0xfff,0,2725))); } if (chan[i].std.pitch.had) {