From f704b10df41306acbccaa092fa2da05e2ca51d51 Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Thu, 23 Jul 2009 22:15:13 +0000 Subject: Outputs a bang via bang outlet when done, same as [textfile]. No more bangs through bin outlet. svn path=/trunk/externals/mrpeach/; revision=11879 --- binfile/binfile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'binfile') 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 -- cgit v1.2.1