'Fixed' the bug with the sample being nil sometimes

This commit is contained in:
nucular 2014-05-09 17:31:10 +02:00
parent 0b3049d054
commit 8f2b359e79

View File

@ -432,10 +432,7 @@ function sfxr.Sound:generateTable(freq, bits)
local i = 1
for v in self:generate(freq, bits) do
if not v then
break
end
t[i] = v
t[i] = v or 0
i = i + 1
end