From eb62f26813522f7b50efb998dff75b62f16e90c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Bourdeauducq?= Date: Fri, 27 Dec 2024 19:14:25 +0800 Subject: [PATCH] fix read buffer length --- sndlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sndlock.cpp b/sndlock.cpp index bc6fddf..a41c7bd 100644 --- a/sndlock.cpp +++ b/sndlock.cpp @@ -100,7 +100,7 @@ static void dsp_thread() size_t read = sio_read(hdl, buf_in, sizeof(buf_in)); float scale = powf(0.5f, SND_BITS-1); for(int i=0;i rotated; rotated = (float)buf_in[j]*std::polar(scale, phase_in[i]*2.0f*(float)M_PI/(float)UINT32_MAX); phase_in[i] += ftw[i]; // wraps on underflow