fix: MIDI keyboard preview silent after transport STOP — live flag bypass guard (V8)

This commit is contained in:
2026-08-16 15:43:23 +07:00
parent 2d63774474
commit b6950d6418
11 changed files with 1450 additions and 1448 deletions
+2 -1
View File
@@ -667,11 +667,12 @@ fn push_midi_event(
data2: u8,
data3: u8,
sample_offset: u32,
live: bool,
) -> Result<(), String> {
let state = app.state::<ShmState>();
let guard = state.0.lock().map_err(|e| e.to_string())?;
let shm = guard.as_ref().ok_or("bridge shm unavailable")?;
shm.push_midi(command, channel, pitch, velocity, data2, data3, sample_offset)
shm.push_midi(command, channel, pitch, velocity, data2, data3, sample_offset, live as u8)
.then_some(())
.ok_or_else(|| "midi queue full".to_string())
}