diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-02-19 03:03:32 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:23:30 +0200 |
commit | b317e860079c1fb166a95d0b5c17574cb6a32d4f (patch) | |
tree | 4c887f7c644f618763b656fe4297509c07f36000 /spigot~.c | |
parent | fb95f8f94849db058a566cde134f52b5f50ddfcf (diff) |
reformat code to match Pd style by running 'astyle --style=ansi *.c'
svn path=/trunk/externals/unauthorized/; revision=15994
Diffstat (limited to 'spigot~.c')
-rw-r--r-- | spigot~.c | 26 |
1 files changed, 16 insertions, 10 deletions
@@ -39,15 +39,21 @@ static t_int *spigot_perform(t_int *w) t_float *outl = (t_float *)(w[3]); int n = (int)(w[4]); t_spigot* x = (t_spigot*)(w[5]); - while (n--) { - if ( (x->x_on)==0.0 ) { - *(outl)=0.0; - *(outr)=*(in); - } else { - *(outl)=*(in); - *(outr)=0.0; - } - in++;outl++;outr++; + while (n--) + { + if ( (x->x_on)==0.0 ) + { + *(outl)=0.0; + *(outr)=*(in); + } + else + { + *(outl)=*(in); + *(outr)=0.0; + } + in++; + outl++; + outr++; } return (w+6); } @@ -67,7 +73,7 @@ void spigot_tilde_setup(void) { verbose(0, spigot_version ); spigot_class = class_new(gensym("spigot~"), (t_newmethod)spigot_new, 0, - sizeof(t_spigot), 0, 0); + sizeof(t_spigot), 0, 0); CLASS_MAINSIGNALIN( spigot_class, t_spigot, x_f ); class_addmethod(spigot_class, (t_method)spigot_dsp, gensym("dsp"), 0); class_addmethod(spigot_class, (t_method)spigot_set, gensym("seton"), A_FLOAT, 0); |