Example #1
0
// prefs
t_max_err plugtastic_getpref(void *dummy, void *attr, long *argc, t_atom **argv)
{
	char alloc;
	
	atom_alloc_array(1, argc, argv, &alloc);
	atom_setlong(*argv, sPlugtasticSplash);
	return MAX_ERR_NONE;
}
Example #2
0
t_max_err polywave_buf_get(t_polywave *x, t_object *attr, long *argc, t_atom **argv)
{
    
    char alloc;
    int i;
    
    atom_alloc_array(x->numbufs, argc, argv, &alloc);
    
    if (x->numbufs)
    {
        for(i = 0; i < x->numbufs; i++)
        {
            atom_setsym(*argv+i, x->buf_name[i]);
        }
        
    }
    else
    {
        atom_setsym(*argv, gensym("<empty>"));
    }
    
    return 0;
}