Allow resizing shared memory buffers in setActive

REAPER apparently changes bus arrangements between
`IAudioProcessor::setupProcessing()` and `IAudioProcessor::setActive()`.
This commit is contained in:
Robbert van der Helm
2022-05-18 17:46:51 +02:00
parent 5d9029d839
commit dedcdefebf
8 changed files with 95 additions and 20 deletions
+13
View File
@@ -1897,6 +1897,19 @@ void Vst3Logger::log_response(
});
}
void Vst3Logger::log_response(bool is_host_vst,
const YaComponent::SetActiveResponse& response) {
log_response_base(is_host_vst, [&](auto& message) {
message << response.result.string();
if (response.result == Steinberg::kResultOk &&
response.updated_audio_buffers_config) {
message << ", <new shared memory configuration for \""
<< response.updated_audio_buffers_config->name << "\", "
<< response.updated_audio_buffers_config->size << " bytes>";
}
});
}
void Vst3Logger::log_response(
bool is_host_vst,
const YaPrefetchableSupport::GetPrefetchableSupportResponse& response) {
+1
View File
@@ -319,6 +319,7 @@ class Vst3Logger {
bool from_cache = false);
void log_response(bool is_host_vst,
const YaComponent::GetRoutingInfoResponse&);
void log_response(bool is_host_vst, const YaComponent::SetActiveResponse&);
void log_response(
bool is_host_vst,
const YaPrefetchableSupport::GetPrefetchableSupportResponse&);