Revert "Clean up chunk buffer retrieval for effGetChunk"

This reverts commit fb8fe035d8.

I was getting things mixed up.
This commit is contained in:
Robbert van der Helm
2020-04-30 22:41:07 +02:00
parent 11b04ffd3e
commit eb94f63e2c
+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
// `data`, with the return value from the event determines
// how much data the plugin has written
return std::vector<uint8_t>(
binary_buffer.begin(),
binary_buffer.begin() + return_value);
const uint8_t* chunk_data = *static_cast<uint8_t**>(data);
return std::vector<uint8_t>(chunk_data,
chunk_data + return_value);
},
[&](VstIOProperties& props) -> EventResposnePayload {
return props;