From c0095d770a248baeb0f403a7c9fc13ecf6b19868 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Sat, 3 Jan 2015 14:25:31 +0000 Subject: completes the 64-pit support started with rev 17393, also adds a log message with version number to each changed object. svn path=/trunk/externals/miXed/; revision=17397 --- cyclone/sickle/peek.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'cyclone/sickle/peek.c') diff --git a/cyclone/sickle/peek.c b/cyclone/sickle/peek.c index 333f427..5a5233e 100644 --- a/cyclone/sickle/peek.c +++ b/cyclone/sickle/peek.c @@ -6,6 +6,7 @@ #include #include "m_pd.h" +#include "shared.c" #include "sickle/sic.h" #include "sickle/arsic.h" @@ -50,7 +51,7 @@ static void peek_set(t_peek *x, t_symbol *s) static void peek_float(t_peek *x, t_float f) { t_arsic *sic = (t_arsic *)x; - t_float *vp; + t_word *vp; arsic_validate(sic, 0); /* LATER rethink (efficiency, and complaining) */ if (vp = sic->s_vectors[x->x_effchannel]) { @@ -61,7 +62,7 @@ static void peek_float(t_peek *x, t_float f) { double timesince; t_float f = x->x_value; - vp[ndx] = (x->x_clipmode ? peek_doclip(f) : f); + vp[ndx].w_float = (x->x_clipmode ? peek_doclip(f) : f); x->x_pokemode = 0; timesince = clock_gettimesince(x->x_clocklasttick); if (timesince > 1000) peek_tick(x); @@ -72,7 +73,7 @@ static void peek_float(t_peek *x, t_float f) } } /* CHECKED: output not clipped */ - else outlet_float(((t_object *)x)->ob_outlet, vp[ndx]); + else outlet_float(((t_object *)x)->ob_outlet, vp[ndx].w_float); } } } @@ -144,4 +145,6 @@ void peek_tilde_setup(void) gensym("ft2"), A_FLOAT, 0); class_addmethod(peek_class, (t_method)peek_clip, gensym("clip"), A_FLOAT, 0); + logpost(NULL, 4, "this is cyclone/peek~ %s, %dth %s build", + CYCLONE_VERSION, CYCLONE_BUILD, CYCLONE_RELEASE); } -- cgit v1.2.1