From a6d4aa2bcc49633db1d8464f7727cb73e2c0d052 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Wed, 4 Jun 2003 02:38:08 +0000 Subject: "" svn path=/trunk/; revision=681 --- externals/grill/xsample/source/main.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'externals/grill/xsample/source/main.cpp') 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 } - +*/ -- cgit v1.2.1