Fixed issue #5

This commit is contained in:
Iliyas Jorio 2014-08-23 12:07:26 +02:00
parent 6379b1e7f9
commit dda0c9b605

View File

@ -450,20 +450,13 @@ function sfxr.Sound:getEnvelopeLimit(freq)
end
end
function sfxr.Sound:getLimit(freq)
return self:getEnvelopeLimit(freq)
end
function sfxr.Sound:generateTable(freq, bits)
local t = {}
t[self:getLimit(freq)] = 0
local i = 1
for v in self:generate(freq, bits) do
t[i] = v or 0
t[i] = v
i = i + 1
end
return t
end