aboutsummaryrefslogtreecommitdiff
path: root/pluginhost~/src
diff options
context:
space:
mode:
Diffstat (limited to 'pluginhost~/src')
-rw-r--r--pluginhost~/src/pluginhost~.c3
-rw-r--r--pluginhost~/src/pluginhost~.h3
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;