Transmit the freewheeling state to the synth
This commit is contained in:
parent
a5b8bfb6ac
commit
4fb81e4a2e
1 changed files with 7 additions and 2 deletions
|
|
@ -488,8 +488,13 @@ run(LV2_Handle instance, uint32_t sample_count)
|
||||||
if (!self->control_port || !self->notify_port)
|
if (!self->control_port || !self->notify_port)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (*(self->freewheel_port) > 0)
|
// Enable freewheeling on the synth if necessary, which wait for
|
||||||
lv2_log_note(&self->logger, "[run] Freewheeling set!");
|
// the background loading queues to flush before rendering.
|
||||||
|
if (*(self->freewheel_port) > 0) {
|
||||||
|
sfizz_enable_freewheeling(self->synth);
|
||||||
|
} else {
|
||||||
|
sfizz_disable_freewheeling(self->synth);
|
||||||
|
}
|
||||||
|
|
||||||
// Set up forge to write directly to notify output port.
|
// Set up forge to write directly to notify output port.
|
||||||
const size_t notify_capacity = self->notify_port->atom.size;
|
const size_t notify_capacity = self->notify_port->atom.size;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue