Try DISPATCH_TIME_FOREVER.

ms-pipeline-optim-2
Mooneer Salem 2025-08-10 10:01:50 -07:00
parent 7c719a3e3c
commit a913e8573e
1 changed files with 1 additions and 1 deletions

View File

@ -888,7 +888,7 @@ void MacAudioDevice::stopRealTimeWork(bool fastMode)
//timeToWaitMilliseconds -= AddedWaitDuration_;
//auto waitStart = std::chrono::high_resolution_clock::now();
dispatch_semaphore_wait(sem_, dispatch_time(DISPATCH_TIME_NOW, MS_TO_NSEC * timeToWaitMilliseconds));
dispatch_semaphore_wait(sem_, DISPATCH_TIME_FOREVER); //dispatch_time(DISPATCH_TIME_NOW, MS_TO_NSEC * timeToWaitMilliseconds));
//auto waitEnd = std::chrono::high_resolution_clock::now();
//auto waitDurationMilliseconds = std::chrono::duration_cast<std::chrono::milliseconds>(waitEnd - waitStart).count();