Mercurial > hg > aimc
diff trunk/src/Support/SignalBank.cc @ 420:733a11a65f3d
- Allow processing without re-initialization.
author | tom@acousticscale.org |
---|---|
date | Tue, 26 Oct 2010 04:48:56 +0000 |
parents | 30dde71d0230 |
children |
line wrap: on
line diff
--- a/trunk/src/Support/SignalBank.cc Tue Oct 26 04:09:31 2010 +0000 +++ b/trunk/src/Support/SignalBank.cc Tue Oct 26 04:48:56 2010 +0000 @@ -94,6 +94,13 @@ return true; } +void SignalBank::Clear() { + for (int i = 0; i < channel_count_; ++i) { + signals_[i].assign(buffer_length_, 0.0f); + strobes_[i].resize(0); + } +} + bool SignalBank::Validate() const { if (sample_rate_ <= 0.0f) return false;