shithub: sox

Download patch

ref: 37f9f1e07ec542d872b76266aa6e8b2bfb26ed31
parent: 4243565873b2284284af4c60c9c962e2960e0c28
author: rrt <rrt>
date: Wed Jan 17 09:59:29 EST 2007

Copyright and comment the skeleton Lua effect.

--- a/src/skeleff.lua
+++ b/src/skeleff.lua
@@ -1,7 +1,34 @@
+-- skeleff - Skeleton Effect.  Use as a model for new effects.
+-- 
+-- Copyright 2007 Reuben Thomas
+-- 
+-- This library is free software; you can redistribute it and/or
+-- modify it under the terms of the GNU Lesser General Public
+-- License as published by the Free Software Foundation; either
+-- version 2 of the License, or (at your option) any later version.
+-- 
+-- This library is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+-- Lesser General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Lesser General Public
+-- License along with this library. If not, write to the Free Software
+-- Foundation, Fifth Floor, 51 Franklin Street, Boston, MA 02111-1301,
+-- USA.
+
+
+-- The effect is passed the entire input as an st_sample_t table
 ibuf = ...
-print(ibuf)
+
+-- The output is a normal Lua table
+obuf = {}
+
+-- Compute the output
 for i = 1, #ibuf do
   print(ibuf[i])
+  obuf[i] = ibuf[i]
 end
 
-return {} -- return an empty result
+-- Return the output
+return obuf