Browse Source

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

v6.1.6
ed 3 years ago
parent
commit
61fdde7cf9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_audio_devices/native/juce_win32_ASIO.cpp

+ 2
- 0
modules/juce_audio_devices/native/juce_win32_ASIO.cpp 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)


Loading…
Cancel
Save