aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-10-16 12:25:30 +0300
committerWohlstand <admin@wohlnet.ru>2020-10-16 12:25:30 +0300
commit81278a1ec176a2d5c43c1bdc131637aeaacdbcef (patch)
tree207a72de6eb15b61e4989f6616e342ee4a369dca /src/adlmidi.cpp
parent25644ca0571f6380273a22a3bb76628231ed62b1 (diff)
downloadlibADLMIDI-81278a1ec176a2d5c43c1bdc131637aeaacdbcef.tar.gz
libADLMIDI-81278a1ec176a2d5c43c1bdc131637aeaacdbcef.tar.bz2
libADLMIDI-81278a1ec176a2d5c43c1bdc131637aeaacdbcef.zip
Remove the check from the MIDI player
It's useless here, it's important for the only generator
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r--src/adlmidi.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp
index 469ff09..194774e 100644
--- a/src/adlmidi.cpp
+++ b/src/adlmidi.cpp
@@ -1311,8 +1311,6 @@ ADLMIDI_EXPORT int adl_playFormat(ADL_MIDIPlayer *device, int sampleCount,
while(left > 0)
{
{//...
- if(setup.delay <= 0.0)
- setup.delay = double(left / 2) / double(setup.PCM_RATE);
const double eat_delay = setup.delay < setup.maxdelay ? setup.delay : setup.maxdelay;
if(hasSkipped)
{