mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-15 21:15:51 +02:00
Cache VST3 parameter information
This is in some cases needed to get decent performance in REAPER, as REAPER seems to query this information (which cannot change without the plugin requesting a restart) four times per second.
This commit is contained in:
@@ -1411,13 +1411,17 @@ void Vst3Logger::log_response(
|
||||
|
||||
void Vst3Logger::log_response(
|
||||
bool is_host_vst,
|
||||
const YaEditController::GetParameterInfoResponse& response) {
|
||||
const YaEditController::GetParameterInfoResponse& response,
|
||||
bool from_cache) {
|
||||
log_response_base(is_host_vst, [&](auto& message) {
|
||||
message << response.result.string();
|
||||
if (response.result == Steinberg::kResultOk) {
|
||||
std::string param_title =
|
||||
VST3::StringConvert::convert(response.updated_info.title);
|
||||
message << ", <ParameterInfo for '" << param_title << "'>";
|
||||
if (from_cache) {
|
||||
message << " (from cache)";
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -247,7 +247,8 @@ class Vst3Logger {
|
||||
void log_response(bool is_host_vst,
|
||||
const Vst3PluginProxy::GetStateResponse&);
|
||||
void log_response(bool is_host_vst,
|
||||
const YaEditController::GetParameterInfoResponse&);
|
||||
const YaEditController::GetParameterInfoResponse&,
|
||||
bool from_cache = false);
|
||||
void log_response(bool is_host_vst,
|
||||
const YaEditController::GetParamStringByValueResponse&);
|
||||
void log_response(bool is_host_vst,
|
||||
|
||||
Reference in New Issue
Block a user