aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/xsample/source/play.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2002-12-30 04:41:17 +0000
committerThomas Grill <xovo@users.sourceforge.net>2002-12-30 04:41:17 +0000
commit8f434561d045ce500b8e07dea39b664a0e4c3a0d (patch)
tree3978eea6eab15db26b2a78d701d2b4b3d6034a5e /externals/grill/xsample/source/play.cpp
parent62530f3fc55d3dc1c12bcd3b88f0922c15cd82e5 (diff)
""
svn path=/trunk/; revision=311
Diffstat (limited to 'externals/grill/xsample/source/play.cpp')
-rw-r--r--externals/grill/xsample/source/play.cpp34
1 files changed, 7 insertions, 27 deletions
diff --git a/externals/grill/xsample/source/play.cpp b/externals/grill/xsample/source/play.cpp
index c2e6ef41..770dd6b6 100644
--- a/externals/grill/xsample/source/play.cpp
+++ b/externals/grill/xsample/source/play.cpp
@@ -9,6 +9,7 @@ WARRANTIES, see the file, "license.txt," in this distribution.
*/
#include "main.h"
+#include <stdio.h>
#ifdef _MSC_VER
#pragma warning (disable:4244)
@@ -25,10 +26,6 @@ public:
virtual BL Init();
-#if FLEXT_SYS == FLEXT_SYS_MAX
- virtual V m_assist(L msg,L arg,C *s);
-#endif
-
virtual V m_help();
virtual V m_print();
@@ -69,8 +66,12 @@ xplay::xplay(I argc,const t_atom *argv)
else
buf = new buffer(NULL,true);
- AddInSignal(); // pos signal
- AddOutSignal(outchns);
+ AddInSignal("Messages and Signal of playing position"); // pos signal
+ for(I ci = 0; ci < outchns; ++ci) {
+ C tmp[30];
+ sprintf(tmp,"Audio signal channel %i",ci+1);
+ AddOutSignal(tmp);
+ }
m_reset();
}
@@ -126,24 +127,3 @@ V xplay::m_print()
}
-#if FLEXT_SYS == FLEXT_SYS_MAX
-V xplay::m_assist(L msg,L arg,C *s)
-{
- switch(msg) {
- case 1: //ASSIST_INLET:
- switch(arg) {
- case 0:
- sprintf(s,"Messages and Signal of playing position"); break;
- }
- break;
- case 2: //ASSIST_OUTLET:
- if(arg < outchns)
- sprintf(s,"Audio signal channel %li",arg+1);
- break;
- }
-}
-#endif
-
-
-
-