Update scripts to use == operator

This commit is contained in:
Robin Gareus 2017-03-16 20:55:41 +01:00
parent a2094b6831
commit d98eca6811
7 changed files with 7 additions and 7 deletions

View file

@ -138,7 +138,7 @@ function dsp_run (ins, outs, n_samples)
for c = 1,#outs do
-- 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
-- fast (accelerated) copy
-- http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR:DSP
ARDOUR.DSP.copy_vector (outs[c], ins[c], n_samples)