==============================================================================
| 93 | |
| 94 | //============================================================================== |
| 95 | void PluginProcessor::prepareToPlay(const double sample_rate, const int samples_per_block) { |
| 96 | for (size_t i = 0; i < 2; ++i) { |
| 97 | main_buffer_[i].resize(static_cast<size_t>(samples_per_block)); |
| 98 | main_pointers_[i] = main_buffer_[i].data(); |
| 99 | side_buffer_[i].resize(static_cast<size_t>(samples_per_block)); |
| 100 | side_pointers_[i] = side_buffer_[i].data(); |
| 101 | } |
| 102 | updateChannelLayout(); |
| 103 | const juce::PluginHostType hostType; |
| 104 | update_channel_layout_per_call_ = hostType.isMaschine(); |
| 105 | controller_.prepare(sample_rate, static_cast<size_t>(samples_per_block)); |
| 106 | sample_rate_.store(sample_rate, std::memory_order::relaxed); |
| 107 | } |
| 108 | |
| 109 | void PluginProcessor::releaseResources() { |
| 110 | } |