diff options
| author | bunnei <bunneidev@gmail.com> | 2023-05-25 21:34:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-25 21:34:50 -0700 |
| commit | 83b502c08cf520166d09b8841f7b8874d35dce4f (patch) | |
| tree | 041901aad11e998b5424c50c6c5f29fef227ed11 /src/audio_core/sink/sink_stream.cpp | |
| parent | ffa1fba7d632d69e564cce302b5e5cf4bf131071 (diff) | |
| parent | d75bcdd07793954e6c33ba131871c183492b32b0 (diff) | |
Merge pull request #10221 from Kelebek1/partial_dsp_revert
Add a 5ms tiemout to the DSP processing wait
Diffstat (limited to 'src/audio_core/sink/sink_stream.cpp')
| -rw-r--r-- | src/audio_core/sink/sink_stream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/sink/sink_stream.cpp b/src/audio_core/sink/sink_stream.cpp index 13ba26e74..9bbb54162 100644 --- a/src/audio_core/sink/sink_stream.cpp +++ b/src/audio_core/sink/sink_stream.cpp @@ -271,8 +271,8 @@ u64 SinkStream::GetExpectedPlayedSampleCount() { void SinkStream::WaitFreeSpace() { std::unique_lock lk{release_mutex}; - release_cv.wait( - lk, [this]() { return queued_buffers < max_queue_size || system.IsShuttingDown(); }); + release_cv.wait_for(lk, std::chrono::milliseconds(5), + [this]() { return queued_buffers < max_queue_size; }); } } // namespace AudioCore::Sink |
