From f6ac50837aabd69c6ea5892a858359f51f40ee03 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 23 Dec 2009 00:11:30 +0100 Subject: Mbmbmlmlm \r is evil. --- dalos-buffer.lua | 60 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'dalos-buffer.lua') diff --git a/dalos-buffer.lua b/dalos-buffer.lua index ecab2ed..8abcadc 100644 --- a/dalos-buffer.lua +++ b/dalos-buffer.lua @@ -1,30 +1,30 @@ -dalosp.buffer = { - input_change = function (self, ind) - local h = self:get_linked_input(1) - if h then - self.color = cd.GREEN - local b = Buffer(true) - b:copyfrom(self:get_linked_input(1)) - self:set_houtput(b) - else - self:set_houtput(nil) - self.color = cd.YELLOW - end - self.dcanvas:draw() - end, - - create = function (d, tab, settings) - tab.ninputs = 1 - tab.noutputs = 1 - tab.otype = dalos.objtype.LUA_FILTER - tab.default_name = "Buffer" - tab.input_change = dalosp.buffer.input_change - tab.ntype = "Buffer" - local obj = dalos.object(d, tab, extra) - - return obj - end, -} - -dalos.buffer = dalosp.buffer.create -dalos:register_obj("Buffer", dalos.buffer) +dalosp.buffer = { + input_change = function (self, ind) + local h = self:get_linked_input(1) + if h then + self.color = cd.GREEN + local b = Buffer(true) + b:copyfrom(self:get_linked_input(1)) + self:set_houtput(b) + else + self:set_houtput(nil) + self.color = cd.YELLOW + end + self.dcanvas:draw() + end, + + create = function (d, tab, settings) + tab.ninputs = 1 + tab.noutputs = 1 + tab.otype = dalos.objtype.LUA_FILTER + tab.default_name = "Buffer" + tab.input_change = dalosp.buffer.input_change + tab.ntype = "Buffer" + local obj = dalos.object(d, tab, extra) + + return obj + end, +} + +dalos.buffer = dalosp.buffer.create +dalos:register_obj("Buffer", dalos.buffer) -- cgit v1.2.3