aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Bullock <postlude@users.sourceforge.net>2010-12-09 20:20:11 +0000
committerJamie Bullock <postlude@users.sourceforge.net>2010-12-09 20:20:11 +0000
commitcc603d033f01f6d429eb0d1330928adcf9b024c4 (patch)
tree89b45120055be4247b90cf63d4299e7af1c8ac66
parent1df8cf39842f218d18a7fb37107907f27d8f7aab (diff)
- fixed some bugs
svn path=/trunk/externals/postlude/; revision=14585
-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;