| 11 | |
| 12 | namespace zlp { |
| 13 | Controller::Controller(juce::AudioProcessor& processor) : |
| 14 | p_ref_(processor) { |
| 15 | not_off_total_.reserve(kBandNum); |
| 16 | for (auto& v : not_off_indices_) { |
| 17 | v.reserve(kBandNum); |
| 18 | } |
| 19 | correction_on_total_.reserve(kBandNum); |
| 20 | for (auto& v : correction_on_indices_) { |
| 21 | v.reserve(kBandNum); |
| 22 | } |
| 23 | for (auto& f : side_emptys_) { |
| 24 | f.setFilterType(zldsp::filter::kBandPass); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | void Controller::prepare(const double sample_rate, const size_t max_num_samples) { |
| 29 | c_filter_structure_ = kMinimum; |
nothing calls this directly
no test coverage detected