aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/xsample/source/main.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-11-19 23:15:44 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-11-19 23:15:44 +0000
commit0f576ee67600ceb2a435fb26b036551ffde8bb74 (patch)
treefa4cdf924a6569339f9d100477a3005f3718fb58 /externals/grill/xsample/source/main.h
parent21859fabaa92215068d7176e504ac0d59d4301a5 (diff)
*** empty log message ***
svn path=/trunk/; revision=3981
Diffstat (limited to 'externals/grill/xsample/source/main.h')
-rw-r--r--externals/grill/xsample/source/main.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/externals/grill/xsample/source/main.h b/externals/grill/xsample/source/main.h
index 6fb1bd2c..9d9f94b8 100644
--- a/externals/grill/xsample/source/main.h
+++ b/externals/grill/xsample/source/main.h
@@ -15,7 +15,7 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#error You need at least flext version 0.5.0
#endif
-#define XSAMPLE_VERSION "0.3.1"
+#define XSAMPLE_VERSION "0.3.2pre"
extern "C++" {
@@ -191,6 +191,12 @@ protected:
Refresh();
}
+ void m_wrap(bool w)
+ {
+ wrap = w;
+ Update(xsc_pos|xsc_range,true);
+ }
+
void m_min(float mn);
void m_max(float mx);
@@ -201,6 +207,7 @@ protected:
long sclmin; // in samples
float sclmul;
float s2u; // sample to unit conversion factor
+ bool wrap;
inline float scale(float smp) const { return (smp-sclmin)*sclmul; }
@@ -266,6 +273,9 @@ private:
FLEXT_ATTRGET_F(s2u)
+ FLEXT_CALLSET_B(m_wrap)
+ FLEXT_ATTRGET_B(wrap)
+
protected:
FLEXT_CALLGET_F(mg_min)
FLEXT_CALLGET_F(mg_max)