From c962230d253e8a6d1ee59fd0f5b3ab7afcc53a9c Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sun, 11 Oct 2020 00:23:23 +0300 Subject: Apply the same fix as for libOPNMIDI --- src/adlmidi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 9d33e62..6b28e06 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -1414,7 +1414,7 @@ ADLMIDI_EXPORT int adl_generateFormat(struct ADL_MIDIPlayer *device, int sampleC ssize_t n_periodCountStereo = 512; int left = sampleCount; - double delay = double(sampleCount) / double(setup.PCM_RATE); + double delay = double(sampleCount / 2) / double(setup.PCM_RATE); while(left > 0) { -- cgit v1.2.3