aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-10-11 00:23:23 +0300
committerWohlstand <admin@wohlnet.ru>2020-10-11 00:23:23 +0300
commitc962230d253e8a6d1ee59fd0f5b3ab7afcc53a9c (patch)
tree1344d480c5a225b70ad07c5a2581e2903ba44a3a /src/adlmidi.cpp
parente52e26a18e3f658a20f620fc55be82f0feef5d01 (diff)
downloadlibADLMIDI-c962230d253e8a6d1ee59fd0f5b3ab7afcc53a9c.tar.gz
libADLMIDI-c962230d253e8a6d1ee59fd0f5b3ab7afcc53a9c.tar.bz2
libADLMIDI-c962230d253e8a6d1ee59fd0f5b3ab7afcc53a9c.zip
Apply the same fix as for libOPNMIDI
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r--src/adlmidi.cpp2
1 files changed, 1 insertions, 1 deletions
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)
{