aboutsummaryrefslogtreecommitdiff
path: root/iem_t3_lib
diff options
context:
space:
mode:
authormusil <tmusil@users.sourceforge.net>2009-03-12 18:56:23 +0000
committermusil <tmusil@users.sourceforge.net>2009-03-12 18:56:23 +0000
commitc79b7cbe9f57bd16c93b887546f708bdf2be01e7 (patch)
tree97a4324abd50e9868d837a93925a2e4d29eee71f /iem_t3_lib
parentd7faff774f8f7ec2c4d5d4f470e4f3a8606b21fd (diff)
chanded some variable names
svn path=/trunk/externals/iemlib/; revision=10862
Diffstat (limited to 'iem_t3_lib')
-rw-r--r--iem_t3_lib/src/t3_bpe.c8
-rw-r--r--iem_t3_lib/src/t3_line~.c18
2 files changed, 13 insertions, 13 deletions
diff --git a/iem_t3_lib/src/t3_bpe.c b/iem_t3_lib/src/t3_bpe.c
index dbd140a..d68ba43 100644
--- a/iem_t3_lib/src/t3_bpe.c
+++ b/iem_t3_lib/src/t3_bpe.c
@@ -35,7 +35,7 @@ static void t3_bpe_tick(t_t3_bpe *x)
{
t_atom *vec = x->x_beg;
t_float val;
- double dticks, time;
+ double dticks, dtime;
int iticks;
if(x->x_curindex >= x->x_curnum)
@@ -48,12 +48,12 @@ static void t3_bpe_tick(t_t3_bpe *x)
x->x_hit = 0;
vec += x->x_curindex;
val = atom_getfloat(vec++);
- time = (double)atom_getfloat(vec);
- outlet_float(x->x_out_time, time);
+ dtime = (double)atom_getfloat(vec);
+ outlet_float(x->x_out_time, dtime);
x->x_at[1].a_w.w_float = val;
x->x_at[0].a_w.w_float = x->x_t3_bang;
outlet_list(x->x_obj.ob_outlet, &s_list, 2, x->x_at);
- dticks = (time + x->x_t3_bang)/x->x_ticks2ms;
+ dticks = (dtime + x->x_t3_bang)/x->x_ticks2ms;
iticks = (int)dticks;
x->x_t3_bang = (dticks - (double)iticks)*x->x_ticks2ms;
if(!x->x_hit)
diff --git a/iem_t3_lib/src/t3_line~.c b/iem_t3_lib/src/t3_line~.c
index 8d386f0..21b7f85 100644
--- a/iem_t3_lib/src/t3_line~.c
+++ b/iem_t3_lib/src/t3_line~.c
@@ -175,7 +175,7 @@ static void t3_line_tilde_list(t_t3_line_tilde *x, t_symbol *s, int ac, t_atom *
if((ac >= 2)&&IS_A_FLOAT(av,0)&&IS_A_FLOAT(av,1))
{
int t3_bang_samps, ticks;
- double time;
+ double dtime;
x->x_inlet_val = (double)atom_getfloatarg(1, ac, av);
t3_bang_samps = (int)((t_float)atom_getfloatarg(0, ac, av)*x->x_ms2samps);
@@ -185,10 +185,10 @@ static void t3_line_tilde_list(t_t3_line_tilde *x, t_symbol *s, int ac, t_atom *
x->x_t3_bang_samps = t3_bang_samps - x->x_n * ticks;
if((ac >= 3)&&IS_A_FLOAT(av,2))
{
- time = (double)atom_getfloatarg(2, ac, av);
- if(time < 0.0)
- time = 0.0;
- x->x_inlet_time = time;
+ dtime = (double)atom_getfloatarg(2, ac, av);
+ if(dtime < 0.0)
+ dtime = 0.0;
+ x->x_inlet_time = dtime;
}
if(ticks < 1)
t3_line_tilde_tick(x);
@@ -197,11 +197,11 @@ static void t3_line_tilde_list(t_t3_line_tilde *x, t_symbol *s, int ac, t_atom *
}
}
-static void t3_line_tilde_ft1(t_t3_line_tilde *x, t_float time)
+static void t3_line_tilde_ft1(t_t3_line_tilde *x, t_float ftime)
{
- if(time < 0.0)
- time = 0.0;
- x->x_inlet_time = (double)time;
+ if(ftime < 0.0)
+ ftime = 0.0;
+ x->x_inlet_time = (double)ftime;
}
static void t3_line_tilde_stop(t_t3_line_tilde *x)