remove long-lived bug that tried to make a non-existent action insensitive
[ardour.git] / scripts / amp4.lua
index 24a838c9cb79b57a6b336148392ddf3de10b93eb..276b4a0af6726f3377ab30fad798b97c5db7ff06 100644 (file)
@@ -1,6 +1,6 @@
 ardour {
        ["type"]    = "dsp",
-       name        = "Amplifier",
+       name        = "a-Amplifier",
        category    = "Amplifier",
        license     = "MIT",
        author      = "Ardour Team",
@@ -66,7 +66,7 @@ function dsp_run (ins, outs, n_samples)
                for c = 1,#ins do -- process all channels
                        -- check if output and input buffers for this channel are identical
                        -- http://manual.ardour.org/lua-scripting/class_reference/#C:FloatArray
-                       if not ins[c]:sameinstance (outs[c]) then
+                       if ins[c] ~= outs[c] then
                                -- http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:DSP
                                ARDOUR.DSP.copy_vector (outs[c]:offset (off), ins[c]:offset (off), siz)
                        end