mirror of
https://github.com/nucular/sfxrlua.git
synced 2024-12-24 18:44:20 +00:00
Reset parameters to default before loading from a file
This commit is contained in:
parent
7c7060875a
commit
bc4ebf3728
3
sfxr.lua
3
sfxr.lua
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user