From a31e4a69b32812ef2ad0de322c54996bb16c09fa Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 26 Nov 2012 03:52:04 +0000 Subject: also bang out 3rd outlet after writing a file, per Max 4.5 and Max 6 reference The Max6 coll.maxhelp says "bangs when done reading", so it seems that cyclone's [coll] only bangs when done reading. But the reference says more on that topic: "Out 3rd outlet: Sent out when coll has finished loading in or writing a file of data." svn path=/trunk/externals/miXed/; revision=16588 --- cyclone/hammer/coll.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cyclone/hammer/coll.c') diff --git a/cyclone/hammer/coll.c b/cyclone/hammer/coll.c index fc81b30..4dd8a52 100644 --- a/cyclone/hammer/coll.c +++ b/cyclone/hammer/coll.c @@ -689,6 +689,10 @@ static void collcommon_dowrite(t_collcommon *cc, t_symbol *fn, t_canvas *cv) loud_error(0, "coll: error writing text file '%s'", fn->s_name); else { + t_coll *x; + /* LATER consider making this more robust */ + for (x = cc->c_refs; x; x = x->x_next) + outlet_bang(x->x_filebangout); cc->c_lastcanvas = cv; cc->c_filename = fn; } -- cgit v1.2.1