summaryrefslogtreecommitdiff
path: root/dalos-limiter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dalos-limiter.lua')
-rw-r--r--dalos-limiter.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/dalos-limiter.lua b/dalos-limiter.lua
index b423d7a..8454775 100644
--- a/dalos-limiter.lua
+++ b/dalos-limiter.lua
@@ -9,6 +9,10 @@ Limit: %i{The actual size this limiter is going to produce}
end
end,
+ get_settings = function (self)
+ return { limit = self.extra.limit }
+ end,
+
input_change = function (self, ind)
local h = self:get_linked_input(1)
if h then
@@ -33,14 +37,16 @@ Limit: %i{The actual size this limiter is going to produce}
end
end,
- create = function (d, tab)
+ create = function (d, tab, settings)
tab.ninputs = 1
tab.noutputs = 1
tab.otype = dalos.objtype.LUA_FILTER
tab.configure = dalosp.limiter.configure
tab.input_change = dalosp.limiter.input_change
tab.default_name = "Limiter"
+ tab.get_settings = dalosp.limiter.get_settings
local extra = { }
+ if settings then extra.limit = settings.limit end
local obj = dalos.object(d, tab, extra)
end,