diff options
author | Martin Peach <mrpeach@users.sourceforge.net> | 2009-07-23 22:15:13 +0000 |
---|---|---|
committer | Martin Peach <mrpeach@users.sourceforge.net> | 2009-07-23 22:15:13 +0000 |
commit | f704b10df41306acbccaa092fa2da05e2ca51d51 (patch) | |
tree | 6c9b86d7b5cb73c016bd5ade9513bd9551aca964 /binfile | |
parent | 41f0d8a90e731ec72fdaea23c03462dda7f0e02a (diff) |
Outputs a bang via bang outlet when done, same as [textfile]. No more bangs through bin outlet.
svn path=/trunk/externals/mrpeach/; revision=11879
Diffstat (limited to 'binfile')
-rw-r--r-- | binfile/binfile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/binfile/binfile.c b/binfile/binfile.c index bdd634e..c32c9af 100644 --- a/binfile/binfile.c +++ b/binfile/binfile.c @@ -233,10 +233,9 @@ static void binfile_bang(t_binfile *x) if (x->x_rd_offset < x->x_length) { c = x->x_buf[x->x_rd_offset++]; - if (x->x_rd_offset == x->x_length) outlet_bang(x->x_bang_outlet); outlet_float(x->x_bin_outlet, (float)c); } - else outlet_bang(x->x_bin_outlet); + else outlet_bang(x->x_bang_outlet); } /* The arguments of the ``list''-method |