Use a template argument for serializing behaviour

This keeps it a bit more readable.
This commit is contained in:
Robbert van der Helm
2020-03-09 20:13:08 +01:00
parent 10b6121cb8
commit adf33e84a8
5 changed files with 86 additions and 87 deletions
+2 -2
View File
@@ -196,8 +196,8 @@ intptr_t PluginBridge::host_callback(AEffect* /*plugin*/,
intptr_t value,
void* data,
float option) {
return send_event(vst_host_callback, false, opcode, index, value, data,
option, nullptr);
return send_event<DefaultDataConverter>(vst_host_callback, opcode, index,
value, data, option, std::nullopt);
}
intptr_t VST_CALL_CONV host_callback_proxy(AEffect* effect,