mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Clean up chunk buffer retrieval for effGetChunk
This commit is contained in:
+3
-3
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user