diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-06-04 02:38:08 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-06-04 02:38:08 +0000 |
commit | a6d4aa2bcc49633db1d8464f7727cb73e2c0d052 (patch) | |
tree | dd3bc68f69d188f32d18022cf5d773a8f201079e /externals/grill/xsample/source/main.cpp | |
parent | 3fb9132261bbc69087161c0f80a3be10a60f07a9 (diff) |
""
svn path=/trunk/; revision=681
Diffstat (limited to 'externals/grill/xsample/source/main.cpp')
-rw-r--r-- | externals/grill/xsample/source/main.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/externals/grill/xsample/source/main.cpp b/externals/grill/xsample/source/main.cpp index 6e17b0a0..1a44a866 100644 --- a/externals/grill/xsample/source/main.cpp +++ b/externals/grill/xsample/source/main.cpp @@ -223,9 +223,12 @@ V xsample::m_dsp(I /*n*/,S *const * /*insigs*/,S *const * /*outsigs*/) if(!m_refresh()) s_dsp(); } - +/* V xsample::arrscale(I n,const S *src,S *dst,S add,S mul) { +#if 1 + flext::ScaleSamples(dst,src,mul,add*mul,n); +#else int n8 = n>>3; n -= n8<<3; while(n8--) { @@ -241,10 +244,14 @@ V xsample::arrscale(I n,const S *src,S *dst,S add,S mul) } while(n--) *(dst++) = (*(src++)+add)*mul; +#endif } V xsample::arrmul(I n,const S *src,S *dst,S mul) { +#if 1 + flext::MulSamples(dst,src,mul,n); +#else int n8 = n>>3; n -= n8<<3; while(n8--) { @@ -260,8 +267,9 @@ V xsample::arrmul(I n,const S *src,S *dst,S mul) } while(n--) *(dst++) = *(src++)*mul; +#endif } - +*/ |