From cc603d033f01f6d429eb0d1330928adcf9b024c4 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Thu, 9 Dec 2010 20:20:11 +0000 Subject: - fixed some bugs svn path=/trunk/externals/postlude/; revision=14585 --- pluginhost~/src/pluginhost~.c | 3 ++- pluginhost~/src/pluginhost~.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pluginhost~/src/pluginhost~.c b/pluginhost~/src/pluginhost~.c index 385e026..03fcbf6 100644 --- a/pluginhost~/src/pluginhost~.c +++ b/pluginhost~/src/pluginhost~.c @@ -2291,7 +2291,7 @@ static void *ph_tilde_new(t_symbol *s, t_int argc, t_atom *argv) ph_tilde_init_plugin(x); - x->sr = (t_int)sys_getsr(); + x->sr = (int)sys_getsr(); x->sr_inv = 1 / (t_float)x->sr; x->time_ref = (t_int)clock_getlogicaltime; x->blksize = sys_getblksize(); @@ -2317,6 +2317,7 @@ static void ph_tilde_sigchld_handler(int sig) wait(NULL); } + void pluginhost_tilde_setup(void) { diff --git a/pluginhost~/src/pluginhost~.h b/pluginhost~/src/pluginhost~.h index b4c9282..1ed7979 100644 --- a/pluginhost~/src/pluginhost~.h +++ b/pluginhost~/src/pluginhost~.h @@ -116,6 +116,8 @@ typedef struct _port_info { typedef struct _ph_tilde { + t_object x_obj; /* gah, this has to be firs in the struct, WTF? */ + int sr; int blksize; int time_ref; @@ -161,7 +163,6 @@ typedef struct _ph_tilde { t_outlet **outlets; t_outlet *control_outlet; t_canvas *x_canvas; - t_object x_obj; ph_port_info *port_info; ph_instance *instances; -- cgit v1.2.1