1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

ASIO: Add short sleep after calling setSampleRate() to allow devices to respond to changes

This commit is contained in:
ed 2021-11-25 15:31:22 +00:00
parent fd7e4afcda
commit 61fdde7cf9

View file

@ -960,6 +960,8 @@ private:
JUCE_ASIO_LOG_ERROR ("setClockSource2", err);
Thread::sleep (10);
err = asioObject->setSampleRate (newRate);
JUCE_ASIO_LOG_ERROR ("setSampleRate", err);
Thread::sleep (10);
}
if (err == 0)