aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)
{