From eeffb47ab74b9085469af789db2e2ecaf967891c Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 16 Apr 2023 02:22:16 -0500 Subject: [PATCH] X1-010: why is the per-chan osc so quiet? --- src/engine/platform/x1_010.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/platform/x1_010.cpp b/src/engine/platform/x1_010.cpp index 638001740..44f94d991 100644 --- a/src/engine/platform/x1_010.cpp +++ b/src/engine/platform/x1_010.cpp @@ -222,7 +222,8 @@ void DivPlatformX1_010::acquire(short** buf, size_t len) { if (stereo) buf[1][h]=tempR; for (int i=0; i<16; i++) { - oscBuf[i]->data[oscBuf[i]->needle++]=(x1_010.voice_out(i,0)+x1_010.voice_out(i,1))>>1; + int vo=(x1_010.voice_out(i,0)+x1_010.voice_out(i,1))<<3; + oscBuf[i]->data[oscBuf[i]->needle++]=CLAMP(vo,-32768,32767); } } }