[PD-cvs] externals/iem16/src iem16.c,1.1.1.1,1.2
IOhannes m zmölnig
zmoelnig at users.sourceforge.net
Sun Apr 29 12:58:28 CEST 2007
Update of /cvsroot/pure-data/externals/iem16/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5340
Modified Files:
iem16.c
Log Message:
disable the [iem16] object since it crashes my wine
Index: iem16.c
===================================================================
RCS file: /cvsroot/pure-data/externals/iem16/src/iem16.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** iem16.c 23 Nov 2004 15:29:47 -0000 1.1.1.1
--- iem16.c 29 Apr 2007 10:58:25 -0000 1.2
***************
*** 10,22 ****
typedef struct iem16 {
! t_object t_ob;
} t_iem16;
! t_class *iem16_class;
! void *iem16_new(void){
t_iem16 *x = (t_iem16 *)pd_new(iem16_class);
post("iem16: 16bit objects for low memory usage");
! return (void *)x;
}
--- 10,23 ----
typedef struct iem16 {
! t_object x_obj;
} t_iem16;
! static t_class *iem16_class;
!
! static void *iem16_new(void){
t_iem16 *x = (t_iem16 *)pd_new(iem16_class);
post("iem16: 16bit objects for low memory usage");
! return(x);
}
***************
*** 28,31 ****
--- 29,38 ----
void iem16_setup(void) {
+ static unsigned int setupcount=0;
+ if(setupcount>0) {
+ post("iem16:\tsetup called several times, skipping...");
+ return;
+ }
+ setupcount++;
iem16_table_setup();
iem16_array_setup();
***************
*** 38,49 ****
post("iem16:\tInstitute of Electronic Music and Acoustics, Graz - iem");
post("iem16:\tcompiled: "__DATE__);
!
!
iem16_class = class_new(gensym("iem16"),
iem16_new,
0,
! sizeof(t_iem16), CLASS_NOINLET, A_NULL);
class_addcreator((t_newmethod)iem16_new,
! gensym("IEM16"), A_NULL);
}
--- 45,59 ----
post("iem16:\tInstitute of Electronic Music and Acoustics, Graz - iem");
post("iem16:\tcompiled: "__DATE__);
! #if defined __WIN32__ || defined __WIN32
! post("iem16:\ton W32 you cannot create the [iem16] object. nevermind...");
! #else
iem16_class = class_new(gensym("iem16"),
iem16_new,
0,
! sizeof(t_iem16), 0, 0);
!
class_addcreator((t_newmethod)iem16_new,
! gensym("IEM16"), 0);
! #endif
}
More information about the Pd-cvs
mailing list