From 03fb31ff8e150a1bfb3ce91fec40e5d3dd0e8957 Mon Sep 17 00:00:00 2001 From: nucular Date: Tue, 26 Aug 2014 15:55:58 +0200 Subject: [PATCH] Update parameters after loading a sound, fixes #11 --- main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 9d679d7..3cea803 100644 --- a/main.lua +++ b/main.lua @@ -114,7 +114,7 @@ function playSound() if source then source:stop() end - + local t = love.timer.getTime() local tab = sound:generateTable(sfxr.FREQ_44100, sfxr.BITS_FLOAT) t = love.timer.getTime() - t @@ -390,6 +390,7 @@ function createActionButtons() lb.OnClick = function(o) local p = love.filesystem.getSaveDirectory() .. "/" .. "sound.lua" sound:load(p) + updateParameters() frt:SetText("Loaded from\n" .. p) fr:SetVisible(true):SetModal(true):Center() end