[PD-cvs] externals/pidip/modules pdp_ripple.c,1.3,1.4
sevyves at users.sourceforge.net
sevyves at users.sourceforge.net
Sat Oct 18 00:08:45 CEST 2003
Update of /cvsroot/pure-data/externals/pidip/modules
In directory sc8-pr-cvs1:/tmp/cvs-serv19474
Modified Files:
pdp_ripple.c
Log Message:
Updated for 0.12.9
Index: pdp_ripple.c
===================================================================
RCS file: /cvsroot/pure-data/externals/pidip/modules/pdp_ripple.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** pdp_ripple.c 17 Oct 2003 20:54:40 -0000 1.3
--- pdp_ripple.c 17 Oct 2003 22:08:43 -0000 1.4
***************
*** 29,33 ****
#include <math.h>
! #define MAGIC_THRESHOLD 5
static unsigned int fastrand_val;
--- 29,33 ----
#include <math.h>
! #define MAGIC_THRESHOLD 30
static unsigned int fastrand_val;
***************
*** 115,124 ****
x->x_diff = (short int*) getbytes((x->x_vsize + (x->x_vsize>>1))<<1);
! x->x_bdata = (short int *)getbytes((( x->x_vsize + (x->x_vsize>>1))<<1));
x->x_maph = x->x_vheight / 2 + 1;
x->x_mapw = x->x_vwidth / 2 + 1;
x->x_map = (int *)getbytes(x->x_maph*x->x_mapw*3*sizeof(t_int));
x->x_vtable = (signed char *)getbytes(x->x_maph*x->x_mapw*2*sizeof(signed char));
! if( !x->x_map || x->x_vtable || !x->x_bdata || ! x->x_diff ) {
post( "pdp_ripple : severe error : cannot allocate buffers" );
}
--- 115,124 ----
x->x_diff = (short int*) getbytes((x->x_vsize + (x->x_vsize>>1))<<1);
! x->x_bdata = (short int *) getbytes((( x->x_vsize + (x->x_vsize>>1))<<1));
x->x_maph = x->x_vheight / 2 + 1;
x->x_mapw = x->x_vwidth / 2 + 1;
x->x_map = (int *)getbytes(x->x_maph*x->x_mapw*3*sizeof(t_int));
x->x_vtable = (signed char *)getbytes(x->x_maph*x->x_mapw*2*sizeof(signed char));
! if( !x->x_map || !x->x_vtable || !x->x_bdata || !x->x_diff ) {
post( "pdp_ripple : severe error : cannot allocate buffers" );
}
***************
*** 126,130 ****
x->x_map2 = x->x_map + x->x_maph * x->x_mapw;
x->x_map3 = x->x_map + x->x_mapw * x->x_maph * 2;
-
}
--- 126,129 ----
***************
*** 309,313 ****
{
x->x_snapshot = 0;
! memcpy( x->x_bdata, data, (x->x_vsize + (x->x_vsize<<1))<<1 );
}
--- 308,312 ----
{
x->x_snapshot = 0;
! memcpy( x->x_bdata, data, (x->x_vsize + (x->x_vsize>>1))<<1 );
}
More information about the Pd-cvs
mailing list