[PD-cvs] externals/hcs platformdummy.c,NONE,1.1 platformdummy-help.pd,NONE,1.1
eighthave at users.sourceforge.net
eighthave at users.sourceforge.net
Mon Nov 17 18:15:58 CET 2003
- Previous message: [PD-cvs] externals/build/src linuxevent.c,1.2,1.3 linuxjoystick.c,1.2,1.3 linuxmouse.c,1.2,1.3
- Next message: [PD-cvs] externals/hcs linuxhid.pd,NONE,1.1 Makefile,1.9,1.10 linuxevent.c,1.3,1.4 linuxevent-help.pd,1.2,1.3 linuxevent-joystick.pd,1.1,1.2 linuxhid.h,1.4,1.5 linuxjoystick.c,1.2,1.3 linuxjoystick-help.pd,1.1,1.2 linuxmouse.c,1.2,1.3 linuxmouse-help.pd,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/pure-data/externals/hcs
In directory sc8-pr-cvs1:/tmp/cvs-serv19696
Added Files:
platformdummy.c platformdummy-help.pd
Log Message:
first sketch of platformdummy, doesn't work yet
--- NEW FILE: platformdummy.c ---
/* -------------------------- platformdummy ----------------------------------- */
/* */
/* Space filler object for objects that don't work on the given platform. */
/* Written by Hans-Christoph Steiner <hans at eds.org> */
/* */
/* This program is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation; either version 2 */
/* of the License, or (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program; if not, write to the Free Software */
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* */
/* Based on PureData by Miller Puckette and others. */
/* */
/* ---------------------------------------------------------------------------- */
#include <m_pd.h>
#define INLET_NUMBER 8
#define OUTLET_NUMBER 8
typedef struct platformdummy {
t_object x_ob;
t_symbol *x_symbol;
t_outlet *x_outlets[OUTLET_NUMBER];
} t_platformdummy;
t_class *platformdummy_class;
void *platformdummy_new(void) {
int i;
t_platformdummy *x = (t_platformdummy *)pd_new(platformdummy_class);
/* counter starts at one since Pd makes the first inlet automatically */
for (i=1;i<INLET_NUMBER;x++)
symbolinlet_new(&x->x_ob, &x->x_symbol);
for (i=0;i<OUTLET_NUMBER;x++)
x->x_outlets[i] = outlet_new(&x->x_ob, gensym("float"));
return (void *)x;
}
void platformdummy_setup(void) {
platformdummy_class = class_new(gensym("platformdummy"), (t_newmethod)platformdummy_new,
0, sizeof(t_platformdummy), 0, 0);
class_sethelpsymbol(platformdummy_class, gensym("platformdummy-help.pd"));
}
--- NEW FILE: platformdummy-help.pd ---
#N canvas 302 322 432 260 10;
#X obj 156 160 platformdummy;
#X text 18 64 [platformdummy] is an merely a space filler to take the
place of platform-specific objects when you are running a patch on
a platform that doesn't support specific objects.;
#X text 18 115 Some examples of such objects are [linuxevent] and [linuxmouse]
which only work with the Linux Event system.;
#X text 22 198 [platformdummy] has 8 inlets and 8 outlets so that you
won't loose the connections if the patch is saved on a platform that
doesn't support a given object.;
#X obj 16 5 cnv 15 400 40 empty empty platformdummy 20 12 1 14 -257472
-66577 0;
- Previous message: [PD-cvs] externals/build/src linuxevent.c,1.2,1.3 linuxjoystick.c,1.2,1.3 linuxmouse.c,1.2,1.3
- Next message: [PD-cvs] externals/hcs linuxhid.pd,NONE,1.1 Makefile,1.9,1.10 linuxevent.c,1.3,1.4 linuxevent-help.pd,1.2,1.3 linuxevent-joystick.pd,1.1,1.2 linuxhid.h,1.4,1.5 linuxjoystick.c,1.2,1.3 linuxjoystick-help.pd,1.1,1.2 linuxmouse.c,1.2,1.3 linuxmouse-help.pd,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Pd-cvs
mailing list