From 6f187f99ecfe09ff26efbab053d4f5b29254f6ca Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Fri, 2 Aug 2024 09:36:19 +0300 Subject: 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. --- utils/midiplay/adlmidiplay.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils/midiplay') 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; -- cgit v1.2.3