Reset parameters to default before loading from a file

This commit is contained in:
nucular 2014-10-28 16:43:15 +01:00
parent 7c7060875a
commit bc4ebf3728

View File

@ -1085,6 +1085,7 @@ function sfxr.Sound:load(f)
return version
end
self:resetParameters()
-- merge the loaded table into the own
mergetables(self, params)
@ -1165,6 +1166,8 @@ function sfxr.Sound:loadBinary(f)
f:close()
end
self:resetParameters()
local off = 1
local function readFloat()