mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 04:19:59 +02:00
Only set up VST3 SHM audio buffers in setActive()
This avoids doing the duplicate check (since both `setProcessing()` and `setActive()` would be called), and this also gets rid of the assumption added a couple commits ago that `setupProcessing()` is only ever called once, which is not true.
This commit is contained in:
@@ -1007,9 +1007,8 @@ bool Vst3Logger::log_request(
|
||||
|
||||
// TODO: The channel counts are now capped at what the plugin
|
||||
// supports (based on the audio buffers we set up during
|
||||
// `IAudioProcessor::setupProcessing()`). Some hosts may send
|
||||
// more buffers, but we don't reflect that in the output right
|
||||
// now.
|
||||
// `IAudioProcessor::setActive()`). Some hosts may send more
|
||||
// buffers, but we don't reflect that in the output right now.
|
||||
std::ostringstream num_input_channels;
|
||||
num_input_channels << "[";
|
||||
for (bool is_first = true;
|
||||
@@ -1788,19 +1787,6 @@ void Vst3Logger::log_response(
|
||||
});
|
||||
}
|
||||
|
||||
void Vst3Logger::log_response(
|
||||
bool is_host_vst,
|
||||
const YaAudioProcessor::SetupProcessingResponse& response) {
|
||||
log_response_base(is_host_vst, [&](auto& message) {
|
||||
message << response.result.string();
|
||||
if (response.result == Steinberg::kResultOk) {
|
||||
message << ", <shared memory configuration for \""
|
||||
<< response.audio_buffers_config.name << "\", "
|
||||
<< response.audio_buffers_config.size << " bytes>";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void Vst3Logger::log_response(
|
||||
bool is_host_vst,
|
||||
const YaAudioProcessor::ProcessResponse& response) {
|
||||
|
||||
@@ -308,8 +308,6 @@ class Vst3Logger {
|
||||
|
||||
void log_response(bool is_host_vst,
|
||||
const YaAudioProcessor::GetBusArrangementResponse&);
|
||||
void log_response(bool is_host_vst,
|
||||
const YaAudioProcessor::SetupProcessingResponse&);
|
||||
void log_response(bool is_host_vst,
|
||||
const YaAudioProcessor::ProcessResponse&);
|
||||
void log_response(bool is_host_vst,
|
||||
|
||||
Reference in New Issue
Block a user