aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2024-08-02 09:36:19 +0300
committerWohlstand <admin@wohlnet.ru>2024-08-02 09:36:19 +0300
commit6f187f99ecfe09ff26efbab053d4f5b29254f6ca (patch)
tree814748114e1c0306aaf7c8b5cec3d2145a314df3 /utils
parente9c3ac5c9679fa6418cfd7c9b53bf51dabdf9599 (diff)
downloadlibADLMIDI-6f187f99ecfe09ff26efbab053d4f5b29254f6ca.tar.gz
libADLMIDI-6f187f99ecfe09ff26efbab053d4f5b29254f6ca.tar.bz2
libADLMIDI-6f187f99ecfe09ff26efbab053d4f5b29254f6ca.zip
MusPlay: Set bigger mindelay limit on Windows
Otherwise, bandwidth of the port with RetroWave OPL3 is WAY SLOWER than on Linux and on macOS. In result, the tempo goes way slower here.
Diffstat (limited to 'utils')
-rw-r--r--utils/midiplay/adlmidiplay.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/midiplay/adlmidiplay.cpp b/utils/midiplay/adlmidiplay.cpp
index 4b44678..108ffd0 100644
--- a/utils/midiplay/adlmidiplay.cpp
+++ b/utils/midiplay/adlmidiplay.cpp
@@ -845,7 +845,11 @@ static void runHWSerialLoop(ADL_MIDIPlayer *myDevice)
double tick_delay = 0.00000001;
double tick_wait = 0.0;
double timeBegL, timeEndL;
+#if _WIN32
+ const double minDelay = 0.050;
+#else
const double minDelay = 0.005;
+#endif
double eat_delay;
// bool tickSkip = true;