Skip to content

Commit

Permalink
Apply the same fix as for libOPNMIDI
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Oct 10, 2020
1 parent e52e26a commit c962230
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ To build that example you will need to have installed SDL2 library.
* Check out for XG/GS standards to provide a support to use any channels as percussion and also check some of SysEx commands.
* 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!)
Expand Down
2 changes: 1 addition & 1 deletion src/adlmidi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit c962230

Please sign in to comment.