From 8b39f00d730b4cc1da091b72801521e741ac17ac Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 20 Apr 2023 02:32:20 -0500 Subject: [PATCH] fix crash when resampling using BLEP algo if data16 had nothing --- src/engine/sample.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/sample.cpp b/src/engine/sample.cpp index f882a3d0c..d46ced4f0 100644 --- a/src/engine/sample.cpp +++ b/src/engine/sample.cpp @@ -892,10 +892,10 @@ bool DivSample::resampleBlep(double r) { } } for (int i=0; i127) result=127; - data16[i]=round(result); + data8[i]=round(result); } } delete[] floatData;