Move EventPayload to Vst2Event::Payload

This commit is contained in:
Robbert van der Helm
2021-05-20 15:50:22 +02:00
parent b1c9d75112
commit 2bf41c6fe1
7 changed files with 140 additions and 134 deletions
+5 -5
View File
@@ -190,10 +190,10 @@ class DispatchDataConverter : public DefaultDataConverter {
VstRect& editor_rectangle) noexcept
: chunk(chunk_data), plugin(plugin), rect(editor_rectangle) {}
EventPayload read_data(const int opcode,
const int index,
const intptr_t value,
const void* data) const override {
Vst2Event::Payload read_data(const int opcode,
const int index,
const intptr_t value,
const void* data) const override {
// There are some events that need specific structs that we can't simply
// serialize as a string because they might contain null bytes
switch (opcode) {
@@ -307,7 +307,7 @@ class DispatchDataConverter : public DefaultDataConverter {
}
}
std::optional<EventPayload> read_value(
std::optional<Vst2Event::Payload> read_value(
const int opcode,
const intptr_t value) const override {
switch (opcode) {