mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
avoid heap allocation by std::vector in realtime context
This commit is contained in:
parent
e29ac27c59
commit
b96d556451
1 changed files with 1 additions and 1 deletions
|
|
@ -1856,7 +1856,7 @@ LV2Plugin::write_to(RingBuffer<uint8_t>* dest,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
vector<uint8_t> buf(buf_size);
|
uint8_t buf[buf_size];
|
||||||
UIMessage* msg = (UIMessage*)&buf[0];
|
UIMessage* msg = (UIMessage*)&buf[0];
|
||||||
msg->index = index;
|
msg->index = index;
|
||||||
msg->protocol = protocol;
|
msg->protocol = protocol;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue