~ubuntu-branches/ubuntu/wily/pd-smlib/wily

« back to all changes in this revision

Viewing changes to vclip.c

  • Committer: Package Import Robot
  • Author(s): Hans-Christoph Steiner
  • Date: 2012-09-25 12:20:08 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120925122008-jhr5hyl3juh91eyv
Tags: 0.12.2-1
* updated to upstream version v0.12.2
* removed patches since they are in new upstream release
* bumped standards version to 3.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
typedef struct _vclip
10
10
{
11
11
    t_object x_obj;
12
 
        float m_lo;
13
 
        float m_hi;
 
12
        t_float m_lo;
 
13
        t_float m_hi;
14
14
} t_vclip;
15
15
 
16
16
 
17
17
static void vclip_perform(t_vclip *x, t_symbol *s, int argc, t_atom *argv)
18
18
{
19
19
        int i;
20
 
        float lo,hi;
 
20
        t_float lo,hi;
21
21
        t_atom *ap,*app;
22
22
    ap = (t_atom *)getbytes(sizeof(t_atom)*argc);
23
23
        app=ap;
25
25
        hi=x->m_hi;
26
26
        for (i = 0; i < argc; i++)
27
27
        {
28
 
                float f=atom_getfloat(argv++);
 
28
                t_float f=atom_getfloat(argv++);
29
29
                SETFLOAT(app, (f<lo?lo:(f>hi?hi:f)));
30
30
                app++;
31
31
        }