Mercurial > hg > aimc
diff src/Support/SignalBank.cc @ 246:0a3342606855
- Allow processing without re-initialization.
author | tom@acousticscale.org |
---|---|
date | Tue, 26 Oct 2010 04:48:56 +0000 |
parents | 9fcf55c040fe |
children |
line wrap: on
line diff
--- a/src/Support/SignalBank.cc Tue Oct 26 04:09:31 2010 +0000 +++ b/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;