aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flstk.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-09-12 10:27:40 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-09-12 10:27:40 +0000
commitb8827f17107c537f192c60eef0d7840ba1d2d3e8 (patch)
treec6bca0b6b8b354e633218ffbd75166ae53ffe18e /externals/grill/flext/source/flstk.cpp
parent4aa3cf590de6c27f0e43be1bb29923097dbf0c96 (diff)
changed initialization functions accordingly
minimal additions for buffers and exception handling change click modifier to shift (seems to work) small fixes for tutorial examples added flfeatures.h for compile-time version-specific feature detection added typed flext::NewAligned fixed severe Altivec bug adapted for pd-devel 0.39 - better handling of click callback slimmed object data structures update DSP methods for SndObj and STK classes - more compatible handling of attributes in patcher (hiding is now an option - define FLEXT_ATTRHIDE) better buffer checking svn path=/trunk/; revision=3537
Diffstat (limited to 'externals/grill/flext/source/flstk.cpp')
-rw-r--r--externals/grill/flext/source/flstk.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/externals/grill/flext/source/flstk.cpp b/externals/grill/flext/source/flstk.cpp
index b3a6204c..f3161565 100644
--- a/externals/grill/flext/source/flstk.cpp
+++ b/externals/grill/flext/source/flstk.cpp
@@ -45,7 +45,7 @@ void flext_stk::ClearObjs()
}
}
-void flext_stk::m_dsp(int n,t_sample *const *in,t_sample *const *out)
+bool flext_stk::CbDsp()
{
// called on every rebuild of the dsp chain
@@ -64,12 +64,12 @@ void flext_stk::m_dsp(int n,t_sample *const *in,t_sample *const *out)
if(inobjs) {
inobj = new Input *[inobjs];
for(i = 0; i < inobjs; ++i)
- inobj[i] = new Input(in[i],blsz);
+ inobj[i] = new Input(InSig(i),blsz);
}
if(outobjs) {
outobj = new Output *[outobjs];
for(i = 0; i < outobjs; ++i)
- outobj[i] = new Output(out[i],blsz);
+ outobj[i] = new Output(OutSig(i),blsz);
}
if(!NewObjs()) ClearObjs();
@@ -77,12 +77,13 @@ void flext_stk::m_dsp(int n,t_sample *const *in,t_sample *const *out)
else {
// assign changed input/output vectors
- for(i = 0; i < inobjs; ++i) inobj[i]->SetBuf(in[i]);
- for(i = 0; i < outobjs; ++i) outobj[i]->SetBuf(out[i]);
+ for(i = 0; i < inobjs; ++i) inobj[i]->SetBuf(InSig(i));
+ for(i = 0; i < outobjs; ++i) outobj[i]->SetBuf(OutSig(i));
}
+ return true;
}
-void flext_stk::m_signal(int n,t_sample *const *in,t_sample *const *out)
+void flext_stk::CbSignal()
{
if(inobjs || outobjs) ProcessObjs(blsz);
}