diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-10-22 23:55:21 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-10-22 23:55:21 +0000 |
commit | a8374dc0b19440ce5d1dcdda954421a4d942c451 (patch) | |
tree | 86c552d14178efa617a364e04154cb73ca39311d /externals/grill/xsample/source | |
parent | a3e24e5ec82cda3495ee375ad6a1f2100b15359c (diff) |
fix compilation for CFM
small fixes
release version
small change proposed by Tim Blechmann
svn path=/trunk/; revision=3753
Diffstat (limited to 'externals/grill/xsample/source')
-rw-r--r-- | externals/grill/xsample/source/groove.cpp | 7 | ||||
-rw-r--r-- | externals/grill/xsample/source/main.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/externals/grill/xsample/source/groove.cpp b/externals/grill/xsample/source/groove.cpp index a5e3aaf0..d76e3776 100644 --- a/externals/grill/xsample/source/groove.cpp +++ b/externals/grill/xsample/source/groove.cpp @@ -94,9 +94,10 @@ protected: inline void setposmod(double pos) { - double p = pos-znsmin; - if(p >= 0) curpos = znsmin+fmod(p,znsmax-znsmin); - else curpos = znsmax+fmod(p,znsmax-znsmin); + if(pos >= 0) + curpos = znsmin+fmod(pos,znsmax-znsmin); + else + curpos = znsmax+fmod(pos,znsmax-znsmin); } virtual void DoReset(); diff --git a/externals/grill/xsample/source/main.h b/externals/grill/xsample/source/main.h index c3a1a66e..6fb1bd2c 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.1pre8" +#define XSAMPLE_VERSION "0.3.1" extern "C++" { |