Commit 3a4175dc authored by ale's avatar ale

Fix rendering error in the sampler

This error would cause the sampler to render incomplete buffers
whenever multiple LV2 atoms were received in the run() stage.
parent a3223509
......@@ -248,7 +248,9 @@ static void handle_event(struct sampler_plugin *plugin, LV2_Atom_Event *ev) {
static void render(struct sampler_plugin *plugin, uint32_t start,
uint32_t end) {
sampler_output(plugin->sampler, plugin->output_port_l, plugin->output_port_r,
plugin->output_port_l + start,
plugin->output_port_r + start,
end - start);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment