diff options
Diffstat (limited to 'externals/grill/xsample/source/record.cpp')
-rw-r--r-- | externals/grill/xsample/source/record.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/externals/grill/xsample/source/record.cpp b/externals/grill/xsample/source/record.cpp index 02ab41b8..2f16a746 100644 --- a/externals/grill/xsample/source/record.cpp +++ b/externals/grill/xsample/source/record.cpp @@ -207,8 +207,9 @@ V xrecord::m_pos(F pos) I xrecord::m_set(I argc,const t_atom *argv) { I r = xsample::m_set(argc,argv); - if(r < 0) m_reset(); // resets pos/min/max - if(r != 0) m_units(); + if(r) + // buffer parameters have changed, reset pos/min/max + m_reset(); return r; } |