Clean up chunk buffer retrieval for effGetChunk

This commit is contained in:
Robbert van der Helm
2020-04-28 12:48:31 +02:00
parent ed9428da83
commit fb8fe035d8
+3 -3
View File
@@ -269,9 +269,9 @@ void passthrough_event(boost::asio::local::stream_protocol::socket& socket,
// stored in an array to which a pointer is stored in // stored in an array to which a pointer is stored in
// `data`, with the return value from the event determines // `data`, with the return value from the event determines
// how much data the plugin has written // how much data the plugin has written
const uint8_t* chunk_data = *static_cast<uint8_t**>(data); return std::vector<uint8_t>(
return std::vector<uint8_t>(chunk_data, binary_buffer.begin(),
chunk_data + return_value); binary_buffer.begin() + return_value);
}, },
[&](VstIOProperties& props) -> EventResposnePayload { [&](VstIOProperties& props) -> EventResposnePayload {
return props; return props;