aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/xsample/source/inter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/xsample/source/inter.cpp')
-rw-r--r--externals/grill/xsample/source/inter.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/externals/grill/xsample/source/inter.cpp b/externals/grill/xsample/source/inter.cpp
index 42221e1c..f3fba86c 100644
--- a/externals/grill/xsample/source/inter.cpp
+++ b/externals/grill/xsample/source/inter.cpp
@@ -16,7 +16,7 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#endif
#ifndef TMPLOPT
-#include "inter.ci"
+#include "inter.h"
#endif
void xinter::setup(t_classid c)
@@ -53,6 +53,13 @@ V xinter::m_stop()
V xinter::s_dsp()
{
+ switch(outchns) {
+ case 1: SETSIGFUN(zerofun,TMPLFUN(s_play0,-1,1)); break;
+ case 2: SETSIGFUN(zerofun,TMPLFUN(s_play0,-1,2)); break;
+ case 4: SETSIGFUN(zerofun,TMPLFUN(s_play0,-1,4)); break;
+ default: SETSIGFUN(zerofun,TMPLFUN(s_play0,-1,-1));
+ }
+
if(doplay) {
if(interp == xsi_4p)
switch(buf->Channels()*1000+outchns) {