From 996e9a50a8c7cdd418ba398f4aa806c2d69256d1 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Wed, 23 Apr 2003 02:38:03 +0000 Subject: "" svn path=/trunk/; revision=587 --- externals/grill/xsample/source/record.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'externals/grill/xsample/source/record.cpp') diff --git a/externals/grill/xsample/source/record.cpp b/externals/grill/xsample/source/record.cpp index d6b9e70e..02ab41b8 100644 --- a/externals/grill/xsample/source/record.cpp +++ b/externals/grill/xsample/source/record.cpp @@ -67,10 +67,7 @@ private: TMPLSIGFUN(s_rec); DEFSIGCALL(recfun); - virtual V m_signal(I n,S *const *in,S *const *out) - { - if(bufchk()) recfun(n,in,out); - } + virtual V m_signal(I n,S *const *in,S *const *out); FLEXT_CALLVAR_F(mg_pos,m_pos) FLEXT_CALLBACK(m_all) @@ -393,6 +390,16 @@ TMPLDEF V xrecord::s_rec(I n,S *const *invecs,S *const *outvecs) if(lpbang) ToOutBang(3); } +V xrecord::m_signal(I n,S *const *in,S *const *out) +{ + if(bufchk()) + // call the appropriate dsp function + recfun(n,in,out); + else + // set position signal to zero + ZeroSamples(out[0],n); +} + V xrecord::s_dsp() { switch(buf->Channels()*1000+inchns) { -- cgit v1.2.1