comparison 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
comparison
equal deleted inserted replaced
419:31d2b3f2c13b 420:733a11a65f3d
92 } 92 }
93 initialized_ = true; 93 initialized_ = true;
94 return true; 94 return true;
95 } 95 }
96 96
97 void SignalBank::Clear() {
98 for (int i = 0; i < channel_count_; ++i) {
99 signals_[i].assign(buffer_length_, 0.0f);
100 strobes_[i].resize(0);
101 }
102 }
103
97 bool SignalBank::Validate() const { 104 bool SignalBank::Validate() const {
98 if (sample_rate_ <= 0.0f) 105 if (sample_rate_ <= 0.0f)
99 return false; 106 return false;
100 107
101 if (static_cast<int>(signals_.size()) < 1) 108 if (static_cast<int>(signals_.size()) < 1)