mirror of
https://github.com/ZDoom/ZMusic.git
synced 2024-11-23 12:22:30 +00:00
Add handling for KeyPress events and avoid calling snd_seq_sync_output_queue twice
This commit is contained in:
parent
fee3bc352e
commit
514ef6b528
1 changed files with 2 additions and 3 deletions
|
@ -289,8 +289,8 @@ EventType AlsaMIDIDevice::PullEvent(EventState & state) {
|
|||
return EventType::Action;
|
||||
|
||||
case MIDI_POLYPRESS:
|
||||
// FIXME: Seems to be missing in the Alsa sequencer implementation
|
||||
break;
|
||||
snd_seq_ev_set_keypress(&state.data, channel, parm1, parm2);
|
||||
return EventType::Action;
|
||||
|
||||
case MIDI_CTRLCHANGE:
|
||||
snd_seq_ev_set_controller(&state.data, channel, parm1, parm2);
|
||||
|
@ -427,7 +427,6 @@ void AlsaMIDIDevice::PumpEvents() {
|
|||
snd_seq_drain_output(sequencer.handle);
|
||||
snd_seq_sync_output_queue(sequencer.handle);
|
||||
}
|
||||
snd_seq_sync_output_queue(sequencer.handle);
|
||||
snd_seq_stop_queue(sequencer.handle, QueueId, NULL);
|
||||
snd_seq_drain_output(sequencer.handle);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue