mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 20:10:13 +02:00
Implement audioMasterGetTime,fixing playback
Midi and audio now work!
This commit is contained in:
@@ -182,7 +182,9 @@ class DispatchDataConverter : DefaultDataConverter {
|
||||
}
|
||||
}
|
||||
|
||||
void write(const int opcode, void* data, const EventResult& response) {
|
||||
std::optional<intptr_t> write(const int opcode,
|
||||
void* data,
|
||||
const EventResult& response) {
|
||||
switch (opcode) {
|
||||
case effGetChunk:
|
||||
// Write the chunk data to some publically accessible place in
|
||||
@@ -192,9 +194,10 @@ class DispatchDataConverter : DefaultDataConverter {
|
||||
chunk.assign(response.data->begin(), response.data->end());
|
||||
|
||||
*static_cast<void**>(data) = chunk.data();
|
||||
return std::nullopt;
|
||||
break;
|
||||
default:
|
||||
DefaultDataConverter::write(opcode, data, response);
|
||||
return DefaultDataConverter::write(opcode, data, response);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user