mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
ASIO: Amend 61fdde7c to always sleep after calling setSampleRate()
This commit is contained in:
parent
ea8b0a2d32
commit
b8cb4da497
1 changed files with 2 additions and 1 deletions
|
|
@ -951,11 +951,12 @@ private:
|
|||
{
|
||||
JUCE_ASIO_LOG ("rate change: " + String (currentSampleRate) + " to " + String (newRate));
|
||||
auto err = asioObject->setSampleRate (newRate);
|
||||
JUCE_ASIO_LOG_ERROR ("setSampleRate", err);
|
||||
Thread::sleep (10);
|
||||
|
||||
if (err == ASE_NoClock && numClockSources > 0)
|
||||
{
|
||||
JUCE_ASIO_LOG ("trying to set a clock source..");
|
||||
Thread::sleep (10);
|
||||
err = asioObject->setClockSource (clocks[0].index);
|
||||
JUCE_ASIO_LOG_ERROR ("setClockSource2", err);
|
||||
Thread::sleep (10);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue