mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 20:10:13 +02:00
Use the fancy new variant instead of strings
This commit is contained in:
@@ -230,13 +230,7 @@ class HostCallbackDataConverter : DefaultDataConverter {
|
||||
case audioMasterGetTime:
|
||||
// Write the returned `VstTimeInfo` struct into a field and make
|
||||
// the function return a poitner to it in the function below
|
||||
// TODO: Use the fancy new `VstTimeINfo` variant here
|
||||
{
|
||||
std::string buffer =
|
||||
std::get<std::string>(response.payload);
|
||||
time = *static_cast<const VstTimeInfo*>(
|
||||
static_cast<const void*>(buffer.data()));
|
||||
}
|
||||
time = std::get<VstTimeInfo>(response.payload);
|
||||
break;
|
||||
default:
|
||||
DefaultDataConverter::write(opcode, data, response);
|
||||
|
||||
Reference in New Issue
Block a user