diff options
author | Guenter Geiger <ggeiger@users.sourceforge.net> | 2003-01-23 12:32:04 +0000 |
---|---|---|
committer | Guenter Geiger <ggeiger@users.sourceforge.net> | 2003-01-23 12:32:04 +0000 |
commit | 6a34f67a66eee984d72393ad41c3bdf9b6f10279 (patch) | |
tree | 871fa02b2222b22f87d343a786c1478cd49ed43f /plugin~.c | |
parent | 19485158a55f6903562d50c309e933d636abd847 (diff) |
included patch from Jesse Chappell <jesse@essej.net>
svn path=/trunk/externals/plugin~/; revision=359
Diffstat (limited to 'plugin~.c')
-rw-r--r-- | plugin~.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -1,6 +1,6 @@ /* plugin~, a Pd tilde object for hosting LADSPA/VST plug-ins Copyright (C) 2000 Jarno Seppänen - $Id: plugin~.c,v 1.1 2002-11-19 09:51:40 ggeiger Exp $ + $Id: plugin~.c,v 1.2 2003-01-23 12:32:04 ggeiger Exp $ This file is part of plugin~. @@ -328,15 +328,18 @@ plugin_tilde_perform (t_int* w) void plugin_tilde_emit_control_output (Pd_Plugin_Tilde* x, const char* name, - float new_value) + float new_value, + int output_port_index) { - /* Construct and outlet a "control" message with two Pd atoms */ - t_atom anything_atoms[2]; + /* Construct and outlet a "control" message with three Pd atoms */ + t_atom anything_atoms[3]; anything_atoms[0].a_type = A_SYMBOL; anything_atoms[0].a_w.w_symbol = gensym ((char*)name); anything_atoms[1].a_type = A_FLOAT; anything_atoms[1].a_w.w_float = new_value; - outlet_anything (x->control_outlet, gensym ("control"), 2, anything_atoms); + anything_atoms[2].a_type = A_FLOAT; + anything_atoms[2].a_w.w_float = output_port_index; + outlet_anything (x->control_outlet, gensym ("control"), 3, anything_atoms); } static void |