Skip to content

Commit

Permalink
Fix note off implementation for oxisynth
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex committed Sep 17, 2023
1 parent a82a4d6 commit 76cf279
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion neothesia/src/output_manager/synth_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,14 @@ impl OutputConnection for SynthOutputConnection {
}

fn stop_all(&mut self) {
self.tx.send(oxisynth::MidiEvent::SystemReset).ok();
for channel in 0..16 {
self.tx
.send(oxisynth::MidiEvent::AllNotesOff { channel })
.ok();
self.tx
.send(oxisynth::MidiEvent::AllSoundOff { channel })
.ok();
}
}
}

Expand Down

0 comments on commit 76cf279

Please sign in to comment.