Encapsulate our VST3 message handling pattern

Similarly to how how we do it in `EventHandler`.
This commit is contained in:
Robbert van der Helm
2020-12-04 15:28:43 +01:00
parent db1a51af5c
commit 70405e8917
3 changed files with 172 additions and 11 deletions
+5 -4
View File
@@ -66,10 +66,11 @@ void serialize(S& s, ControlRequest& payload) {
*/
using ControlResponse = std::variant<>;
template <typename S>
void serialize(S& s, ControlResponse& payload) {
s.ext(payload, bitsery::ext::StdVariant{});
}
// TODO: Uncomment when this is no longer empty
// template <typename S>
// void serialize(S& s, ControlResponse& payload) {
// s.ext(payload, bitsery::ext::StdVariant{});
// }
/**
* When we do a callback from the Wine VST host to the plugin, this encodes the