From 5be02b55857209d77770c7fb366fb2ed04c56e56 Mon Sep 17 00:00:00 2001 From: Dima Pulkinen Date: Sun, 10 Nov 2024 19:08:41 +0200 Subject: [PATCH] correct sample counter in generateTable function --- sfxr.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfxr.lua b/sfxr.lua index d1e0342..6c5fc4d 100644 --- a/sfxr.lua +++ b/sfxr.lua @@ -795,7 +795,7 @@ function sfxr.Sound:generateTable(rate, depth, tab) t[i] = v i = i + 1 end - return t, i + return t, i - 1 end --- Generate the sound to a binary string.