aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/xsample/source/main.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-03-13 04:58:29 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-03-13 04:58:29 +0000
commit0e0bfeecb60ffa25d997830553685482c666b7ba (patch)
tree61add82a31f1105f99e7959ea34a91659f7f3055 /externals/grill/xsample/source/main.cpp
parentb1d7abe2eddd5d2f1c579a6e0967e6ca7de78ecb (diff)
fixes for Metrowerks
update for new flext callback naming svn path=/trunk/; revision=2623
Diffstat (limited to 'externals/grill/xsample/source/main.cpp')
-rw-r--r--externals/grill/xsample/source/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/externals/grill/xsample/source/main.cpp b/externals/grill/xsample/source/main.cpp
index 030c2675..a19dcb2c 100644
--- a/externals/grill/xsample/source/main.cpp
+++ b/externals/grill/xsample/source/main.cpp
@@ -36,6 +36,7 @@ FLEXT_LIB_SETUP(xsample,xsample_main)
void xsample::setup(t_classid c)
{
+ FLEXT_CADDMETHOD_(c,0,"help",m_help);
FLEXT_CADDMETHOD_(c,0,"set",m_set);
FLEXT_CADDMETHOD_(c,0,"print",m_print);
FLEXT_CADDMETHOD_(c,0,"refresh",m_refresh);
@@ -90,7 +91,7 @@ int xsample::ChkBuffer(bool refresh)
}
/* called after all buffer objects have been created in the patch */
-void xsample::m_loadbang()
+void xsample::CbLoadbang()
{
ChkBuffer(true);
}
@@ -140,7 +141,7 @@ void xsample::m_max(float mx)
}
}
-void xsample::m_dsp(int /*n*/,t_sample *const * /*insigs*/,t_sample *const * /*outsigs*/)
+bool xsample::CbDsp()
{
// this is hopefully called at change of sample rate ?!
@@ -152,6 +153,7 @@ void xsample::m_dsp(int /*n*/,t_sample *const * /*insigs*/,t_sample *const * /*o
// then we must reset the buffer
Update(xsc_srate|xsc_buffer,true);
+ return true;
}
void xsample::DoReset()