mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Fix examples for out of order events
This would be a host bug, but in theory CLAP hosts could provide out of order events this way.
This commit is contained in:
@@ -153,7 +153,7 @@ impl Plugin for Sine {
|
||||
let sine = if self.params.use_midi.value {
|
||||
// Act on the next MIDI event
|
||||
while let Some(event) = next_event {
|
||||
if event.timing() != sample_id as u32 {
|
||||
if event.timing() > sample_id as u32 {
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user