Correct bypass handling in snapshots.

This commit is contained in:
Robin E. R. Davies
2026-01-16 11:44:11 -05:00
parent fb46cbde74
commit 016e36c390
3 changed files with 25 additions and 0 deletions
+13
View File
@@ -2246,6 +2246,19 @@ bool Lv2PluginInfo::WantsWorkerThread() const
{
return contains(this->required_features_, LV2_WORKER__schedule) || contains(this->supported_features_, LV2_WORKER__schedule);
}
uint32_t Lv2PluginInfo::getBypassPortIndex() const
{
for (const auto &port : ports_)
{
if (port->is_bypass())
{
return port->index();
}
}
return (uint32_t)-1;
}
// void PiPedalHostLogError(const std::string &error)
// {
// Lv2Log::error("%s",error.c_str());