fix: MIDI keyboard preview silent after transport STOP — live flag bypass guard (V8)
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user