From 3d9f1b7f5c2921311bb122c7a9f8a57c1fee93e3 Mon Sep 17 00:00:00 2001 From: Eknous-P Date: Mon, 29 Sep 2025 23:44:12 +0400 Subject: [PATCH] fix wavetable to sample not using full range --- src/gui/doAction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/doAction.cpp b/src/gui/doAction.cpp index ddf570f68..3ef117ed0 100644 --- a/src/gui/doAction.cpp +++ b/src/gui/doAction.cpp @@ -933,10 +933,10 @@ void FurnaceGUI::doAction(int what) { sample->loopEnd=waveLen; sample->loop=true; sample->loopMode=DIV_SAMPLE_LOOP_FORWARD; - sample->depth=DIV_SAMPLE_DEPTH_8BIT; + sample->depth=DIV_SAMPLE_DEPTH_16BIT; if (sample->init(waveLen)) { for (unsigned short i=0; idata8[i]=((wave->data[i]*256)/(wave->max+1))-128; + sample->data16[i]=((wave->data[i]*65535.0f)/(wave->max))-32768; } } }