aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--src/adlmidi.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index 585e7e3..bdde5e5 100644
--- a/README.md
+++ b/README.md
@@ -178,6 +178,10 @@ To build that example you will need to have installed SDL2 library.
* Add support of MIDI Format 2 files
# Changelog
+## 1.5.0.1 2020-10-11
+ * Fixed an incorrect timer processing when using a real-time interface
+
+# Changelog
## 1.5.0 2020-09-28
* Drum note length expanding is now supported in real-time mode (Thanks to [Jean Pierre Cimalando](https://github.com/jpcima) for a work!)
* Channels manager has been improved (Thanks to [Jean Pierre Cimalando](https://github.com/jpcima) for a work!)
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)
{