Filter out unsupported aduioMaster* events

Not sure if this is the correct approach, but these seem to not really
do anything and they sometimes crash the host.
This commit is contained in:
Robbert van der Helm
2020-03-10 14:21:27 +01:00
parent 07d488a4f3
commit af94fe80d8
3 changed files with 65 additions and 17 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ class DispatchDataConverter : DefaultDataConverter {
DispatchDataConverter(std::vector<uint8_t>& chunk_data)
: chunk(chunk_data) {}
EventPayload read(const int opcode, const intptr_t value, const void* data) {
std::optional<EventPayload> read(const int opcode, const intptr_t value, const void* data) {
// There are some events that need specific structs that we can't simply
// serialize as a string because they might contain null bytes
// TODO: More of these structs