MCPcopy Create free account
hub / github.com/ZL-Audio/ZLEqualizer / prepareToPlay

Method prepareToPlay

source/PluginProcessor.cpp:95–107  ·  view source on GitHub ↗

==============================================================================

Source from the content-addressed store, hash-verified

93
94//==============================================================================
95void 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
109void PluginProcessor::releaseResources() {
110}

Callers

nothing calls this directly

Calls 2

prepareMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected