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