CicmWrapper  Beta 0.4
A wrapper for Pure Data
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
eobj.h
1 /*
2  * CicmWrapper
3  * Copyright (C) 2013 Pierre Guillot, CICM - Université Paris 8
4  * All rights reserved.
5  * Website : https://github.com/CICM/CicmWrapper
6  * Contacts : cicm.mshparisnord@gmail.com
7  * For information on usage and redistribution, and for a DISCLAIMER OF ALL
8  * WARRANTIES, see the file, "LICENSE.txt," in this distribution.
9  */
10 
17 #ifndef DEF_EOBJ
18 #define DEF_EOBJ
19 
20 #include "edefine.h"
21 
33 void *eobj_new(t_eclass *c);
34 
41 void eobj_free(void *x);
42 
50 t_eproxy* eobj_proxynew(void* x);
51 
59 int eobj_getproxy(void* x);
60 
68 t_eclass* eobj_getclass(void* x);
69 
77 t_symbol* eobj_getclassname(void* x);
78 
86 t_canvas* eobj_getcanvas(void *x);
87 
95 char eobj_isbox(void *x);
96 
104 char eobj_isdsp(void *x);
105 
113 void eobj_attrprocess_viabinbuf(void *x, t_binbuf *d);
114 
123 void eobj_attrprocess_viatoms(void *x, int argc, t_atom *argv);
124 
134 void eobj_attr_setvalueof(void *x, t_symbol* s, int argc, t_atom *argv);
135 
145 void eobj_attr_getvalueof(void *x, t_symbol *s, int *argc, t_atom **argv);
146 
161 void eobj_dspsetup(void *x, long nins, long nouts);
162 
171 void eobj_dspflags(void *x, long flags);
172 
179 void eobj_dspfree(void *x);
180 
188 void eobj_resize_inputs(void *x, long nins);
189 
198 t_sample* eobj_getsignalinput(void *x, long index);
199 
208 t_sample* eobj_getsignaloutput(void *x, long index);
209 
213 
216 /*
217  * \memberof eobj
218  * \param z The eobj pointor
219  * \param b The binbuf
220  */
221 void eobj_save(t_gobj* x, t_binbuf *b);
222 
224 /*
225  * \memberof eobj
226  * \param z The eobj pointor
227  * \param b The binbuf
228  */
229 void eobj_dosave(t_eobj* x, t_binbuf *b);
230 
232 /*
233  * \memberof eobj
234  * \param x The eobj pointer
235  * \param s The message selector
236  * \param itemid the id of the selected item
237  */
238 void eobj_popup(t_eobj* x, t_symbol* s, float itemid);
239 
241 /*
242  * \memberof eobj
243  * \param x The eobj pointor
244  * \param s The symbol selector
245  * \param argc The size of the array of atoms
246  * \param argv The array of atoms
247  */
248 void eobj_write(t_eobj* x, t_symbol* s, int argc, t_atom *argv);
249 
251 /*
252  * \memberof eobj
253  * \param x The eobj pointor
254  * \param s The symbol selector
255  * \param argc The size of the array of atoms
256  * \param argv The array of atoms
257  */
258 void eobj_read(t_eobj* x, t_symbol* s, int argc, t_atom *argv);
259 
261 /*
262  * \param x The edspobj pointer
263  * \param sp The pointers to signal structures
264  */
265 void eobj_dsp(void *x, t_signal **sp);
266 
268 /*
269  * \param w The pointer sent by the dsp method
270  */
271 t_int* eobj_perform_inplace(t_int* w);
272 
274 /*
275  * \param w The pointer sent by the dsp method
276  */
277 t_int* eobj_perform_noinplace(t_int* w);
278 
280 /*
281  * \param x The edspobj
282  * \param s Nothing (for Max 6 compatibility)
283  * \param obj Nothing (for Max 6 compatibility)
284  * \param m The user perform method
285  * \param flags The user perform flags
286  * \param userparam The user perform parameters
287  */
288 void eobj_dsp_add(void *x, t_symbol* s, t_object* obj, t_typ_method m, long flags, void *userparam);
290 
291 #endif
292 
293 
294 
void eobj_resize_inputs(void *x, long nins)
Resizes the number of signal inputs of a t_edspobj.
Definition: eobj.c:395
t_symbol * eobj_getclassname(void *x)
Retrieves the classe name of a t_eobj.
Definition: eobj.c:90
The class.
Definition: edefine.h:498
char eobj_isbox(void *x)
Retreives if a t_eobj is a GUI box or not.
Definition: eobj.c:102
t_sample * eobj_getsignalinput(void *x, long index)
Retrieves the pointer to the signal of an input.
Definition: eobj.c:580
void eobj_attr_getvalueof(void *x, t_symbol *s, int *argc, t_atom **argv)
Gets the values of an attribute.
Definition: eobj.c:248
void eobj_dspflags(void *x, long flags)
Initializes the flags of the t_edsp.
Definition: eobj.c:371
t_eclass * eobj_getclass(void *x)
Retrieves the eclass of a t_eobj.
Definition: eobj.c:84
The t_atom struture.
Definition: enative.h:105
The t_binbuf struture.
Definition: enative.h:58
The t_symbol struture.
Definition: enative.h:46
The graphical t_object struture.
Definition: enative.h:132
The t_object struture.
Definition: enative.h:143
char eobj_isdsp(void *x)
Retreives if a t_eobj is a DSP object or not.
Definition: eobj.c:109
The default object.
Definition: edefine.h:535
void eobj_attrprocess_viabinbuf(void *x, t_binbuf *d)
Changes the attributes with a binbuf.
Definition: eobj.c:220
The Proxy object.
Definition: edefine.h:521
void * eobj_new(t_eclass *c)
The t_eobj creation function.
Definition: eobj.c:18
void eobj_free(void *x)
The t_eobj deletion function. This function should replace pd_free().
Definition: eobj.c:57
int eobj_getproxy(void *x)
Retreives the index of the proxy that received the last message.
Definition: eobj.c:78
void eobj_attrprocess_viatoms(void *x, int argc, t_atom *argv)
Changes the attributes with an array of atoms.
Definition: eobj.c:198
void(* t_typ_method)(void *x,...)
The standart method.
Definition: edefine.h:71
t_eproxy * eobj_proxynew(void *x)
Adds a proxy inlet to a t_eobj.
Definition: eobj.c:73
void eobj_dspsetup(void *x, long nins, long nouts)
Initializes the dsp members of the t_edsp.
Definition: eobj.c:346
t_sample * eobj_getsignaloutput(void *x, long index)
Retrieves the pointer to the signal of an output.
Definition: eobj.c:593
t_canvas * eobj_getcanvas(void *x)
Retreives the canvas that owns the t_eobj.
Definition: eobj.c:96
void eobj_dspfree(void *x)
The t_edspobj deletion function. This function should replace pd_free().
Definition: eobj.c:380
void eobj_attr_setvalueof(void *x, t_symbol *s, int argc, t_atom *argv)
Sets the values of an attribute.
Definition: eobj.c:242