aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/dyn
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-02-03 04:40:02 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-02-03 04:40:02 +0000
commitf5fd60211aa7eb4017bdbc48b96c7cc4f7a3d98a (patch)
tree526dff8920ee562bdb38270a547ed37b0a161f0f /externals/grill/dyn
parent61b909037fddbfba6c0374bb250dfda675256c0e (diff)
""
svn path=/trunk/; revision=380
Diffstat (limited to 'externals/grill/dyn')
-rw-r--r--externals/grill/dyn/src/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/externals/grill/dyn/src/main.cpp b/externals/grill/dyn/src/main.cpp
index 01810c4e..9226fc17 100644
--- a/externals/grill/dyn/src/main.cpp
+++ b/externals/grill/dyn/src/main.cpp
@@ -406,12 +406,10 @@ void dyn::m_newobj(int _argc_,const t_atom *_argv_)
if(pd_class(&x->te_g.g_pd) == canvas_class) {
// loadbang the abstraction
pd_vmess((t_pd *)x,gensym("loadbang"),"");
-
- // for an abstraction dsp must be restarted
- // that's necessary because ToCanvas is called manually
- // (may also be necessary for normal objects in a later PD version)
- canvas_update_dsp();
}
+
+ // restart dsp - that's necessary because ToCanvas is called manually
+ canvas_update_dsp();
}
else {
post("%s - new: Could not create object",thisName());
@@ -615,7 +613,7 @@ void dyn::proxyout::init(dyn *t,int o,bool s)
void dyn::m_dsp(int n,t_signalvec const *insigs,t_signalvec const *outsigs)
{
// add sub canvas to dsp list (no signal vector to borrow from .. set it to NULL)
- mess1((t_pd *)canvas, gensym("dsp"),NULL);
+// mess1((t_pd *)canvas, gensym("dsp"),NULL);
flext_dsp::m_dsp(n,insigs,outsigs);
}
@@ -624,8 +622,10 @@ void dyn::m_signal(int n,t_sample *const *insigs,t_sample *const *outsigs)
{
int i;
for(i = 0; i < s_inlets; ++i)
+ if(pxin[i]->buf)
CopySamples(pxin[i]->buf,insigs[i+1],n);
for(i = 0; i < s_outlets; ++i)
+ if(pxout[i]->buf)
CopySamples(outsigs[i],pxout[i]->buf,n);
}