aboutsummaryrefslogtreecommitdiff
path: root/src/demultiplex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demultiplex.c')
-rw-r--r--src/demultiplex.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/demultiplex.c b/src/demultiplex.c
index 20886f5..ea6cd4a 100644
--- a/src/demultiplex.c
+++ b/src/demultiplex.c
@@ -1,5 +1,5 @@
-/*
- * demux : demultiplex the input to a specified output
+/*
+ * demux : demultiplex the input to a specified output
*
* (c) 1999-2011 IOhannes m zmölnig, forum::für::umläute, institute of electronic music and acoustics (iem)
*
@@ -7,12 +7,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program 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 General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -28,8 +28,7 @@
static t_class *demux_class;
-typedef struct _demux
-{
+typedef struct _demux {
t_object x_obj;
int n_out;
@@ -59,8 +58,8 @@ static void demux_list(t_demux *x, t_symbol *s, int argc, t_atom *argv)
outlet_symbol(x->selected, atom_getsymbol(argv));
break;
case A_POINTER:
- outlet_pointer(x->selected, argv->a_w.w_gpointer);
- break;
+ outlet_pointer(x->selected, argv->a_w.w_gpointer);
+ break;
default:
outlet_list(x->selected, s, argc, argv);
}
@@ -80,7 +79,7 @@ static void *demux_new(t_symbol* UNUSED(s), int argc, t_atom* UNUSED(argv))
int n = (argc < 2)?2:argc;
x->n_out = n - 1;
-
+
inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("select"));
x->out = (t_outlet **)getbytes(n * sizeof(t_outlet *));
@@ -96,13 +95,14 @@ static void *demux_new(t_symbol* UNUSED(s), int argc, t_atom* UNUSED(argv))
void demultiplex_setup(void)
{
demux_class = class_new(gensym("demultiplex"), (t_newmethod)demux_new,
- 0, sizeof(t_demux), 0, A_GIMME, 0);
+ 0, sizeof(t_demux), 0, A_GIMME, 0);
class_addcreator((t_newmethod)demux_new, gensym("demux"), A_GIMME, 0);
-
+
class_addanything (demux_class, demux_any);
class_addlist (demux_class, demux_list);
- class_addmethod (demux_class, (t_method)demux_select, gensym("select"), A_DEFFLOAT, 0);
+ class_addmethod (demux_class, (t_method)demux_select, gensym("select"),
+ A_DEFFLOAT, 0);
zexy_register("demultiplex");
}