Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
PortMidi: Send "reset all controllers" when song loops (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
ceski-1 authored Jan 26, 2023
1 parent c810326 commit b65b381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prboom2/src/MUSIC/portmidiplayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ static void pm_render (void *vdest, unsigned bufflen)
for (int i = 0; i < 16; i++)
{
writeevent (when, 0xB0, i, 0x7B, 0x00); // all notes off
writeevent (when, 0xB0, i, 0x40, 0x00); // hold1 (damper/sustain) pedal
writeevent (when, 0xB0, i, 0x79, 0x00); // reset all controllers
}
continue;
}
Expand Down

0 comments on commit b65b381

Please sign in to comment.