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.