13
0

Do not bind pure virtual functions, use indirection

This fixes Windows/MSVC builds, where linking fails due
to binding a pure virtual function.
This commit is contained in:
Robin Gareus 2020-10-09 17:32:45 +02:00
parent 734a31accf
commit 0edd0c2abc
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 10 additions and 1 deletions

View File

@ -212,6 +212,8 @@ private:
void psl_subscribe_to (boost::shared_ptr<ARDOUR::AutomationControl>, FIDString);
void psl_stripable_property_changed (PBD::PropertyChange const&);
void foward_signal (Presonus::IContextInfoHandler2*, FIDString) const;
PBD::ScopedConnectionList _strip_connections;
PBD::ScopedConnectionList _ac_connection_list;
std::set<Evoral::Parameter> _ac_subscriptions;

View File

@ -2692,7 +2692,14 @@ VST3PI::psl_subscribe_to (boost::shared_ptr<ARDOUR::AutomationControl> ac, FIDSt
return;
}
ac->Changed.connect_same_thread (_ac_connection_list, boost::bind (&IContextInfoHandler2::notifyContextInfoChange, nfo2.get(), id));
ac->Changed.connect_same_thread (_ac_connection_list, boost::bind (&VST3PI::foward_signal, this, nfo2.get(), id));
}
void
VST3PI::foward_signal (IContextInfoHandler2* handler, FIDString id) const
{
assert (handler);
handler->notifyContextInfoChange (id);
}
void