diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-05-10 18:59:21 +0200 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-05-18 14:03:32 +0200 |
commit | d75bcdd07793954e6c33ba131871c183492b32b0 (patch) | |
tree | dcdacfe32430c6a33553dc7ae440c4a7011ef9ab /src/audio_core/sink/sink_stream.cpp | |
parent | Merge pull request #10365 from lat9nq/anv_push_descriptor (diff) | |
download | yuzu-d75bcdd07793954e6c33ba131871c183492b32b0.tar yuzu-d75bcdd07793954e6c33ba131871c183492b32b0.tar.gz yuzu-d75bcdd07793954e6c33ba131871c183492b32b0.tar.bz2 yuzu-d75bcdd07793954e6c33ba131871c183492b32b0.tar.lz yuzu-d75bcdd07793954e6c33ba131871c183492b32b0.tar.xz yuzu-d75bcdd07793954e6c33ba131871c183492b32b0.tar.zst yuzu-d75bcdd07793954e6c33ba131871c183492b32b0.zip |
Diffstat (limited to '')
-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 |