From 1be9429281d7eb7a0cae509b23ed4482768a68f1 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Thu, 16 Dec 2004 05:02:25 +0000 Subject: - made xcode project - fixed loop record bug - some small cleanups svn path=/trunk/; revision=2391 --- externals/grill/xsample/source/record.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'externals/grill/xsample/source/record.cpp') diff --git a/externals/grill/xsample/source/record.cpp b/externals/grill/xsample/source/record.cpp index f297b04c..a30f87cb 100644 --- a/externals/grill/xsample/source/record.cpp +++ b/externals/grill/xsample/source/record.cpp @@ -108,11 +108,11 @@ V xrecord::setup(t_classid c) } xrecord::xrecord(I argc,const t_atom *argv): - dorec(false), - sigmode(false),mixmode(0), - appmode(true),doloop(false), + inchns(1), + sigmode(false),appmode(true), drintv(0), - inchns(1) + dorec(false),doloop(false), + mixmode(0) { I argi = 0; #if FLEXT_SYS == FLEXT_SYS_MAX @@ -394,8 +394,9 @@ TMPLDEF V xrecord::s_rec(I n,S *const *invecs,S *const *outvecs) case 0: { for(int ci = 0; ci < ICHNS; ++ci) { register S *b = bf+ci; - register const F *s = sig[ci]; - for(i = 0; i < ncur; ++i,b += BCHNS,++s) *b = *s; + register const F *s = sig[ci]+si; + for(i = 0; i < ncur; ++i,b += BCHNS,++s) + *b = *s; } si += ncur; break; @@ -412,7 +413,7 @@ TMPLDEF V xrecord::s_rec(I n,S *const *invecs,S *const *outvecs) case 2: { for(int ci = 0; ci < ICHNS; ++ci) { register S *b = bf+ci; - register const F *s = sig[ci]; + register const F *s = sig[ci]+si; for(i = 0; i < ncur; ++i,b += BCHNS,++s) *b += *s; } si += ncur; -- cgit v1.2.1