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

Commit

Permalink
PortMidi: Increase event buffer size
Browse files Browse the repository at this point in the history
Fixes sound hitching when songs loop due to some songs using more than 100 events during initialization.
  • Loading branch information
ceski-1 committed Jun 13, 2023
1 parent 8be14f4 commit 66ec4e8
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 @@ -102,7 +102,7 @@ static int sysexbufflen;
// so the messages appear in the future. ~46-47ms is the nominal length if i_sound.c gets its way
#define DRIVER_LATENCY 80 // ms
// driver event buffer needs to be big enough to hold however many events occur in latency time
#define DRIVER_BUFFER 100 // events
#define DRIVER_BUFFER 1024 // events

static const char *pm_name (void)
{
Expand Down

0 comments on commit 66ec4e8

Please sign in to comment.