summaryrefslogtreecommitdiff
path: root/src/audio_core/sink
diff options
context:
space:
mode:
authorGravatar Kelebek12023-05-27 17:38:07 +0100
committerGravatar Kelebek12023-05-27 17:38:07 +0100
commit9c2b211f128f39f5cbcf761cc1222e01011f47e2 (patch)
tree179f168818b415b36c3e757de05607c4dc72e03b /src/audio_core/sink
parentMerge pull request #10414 from liamwhite/anv-push-descriptor (diff)
downloadyuzu-9c2b211f128f39f5cbcf761cc1222e01011f47e2.tar.gz
yuzu-9c2b211f128f39f5cbcf761cc1222e01011f47e2.tar.xz
yuzu-9c2b211f128f39f5cbcf761cc1222e01011f47e2.zip
Audren wait as suggested by ByLaws
Diffstat (limited to 'src/audio_core/sink')
-rw-r--r--src/audio_core/sink/sink_stream.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/audio_core/sink/sink_stream.cpp b/src/audio_core/sink/sink_stream.cpp
index 9bbb54162..2331aaff9 100644
--- a/src/audio_core/sink/sink_stream.cpp
+++ b/src/audio_core/sink/sink_stream.cpp
@@ -273,6 +273,9 @@ void SinkStream::WaitFreeSpace() {
273 std::unique_lock lk{release_mutex}; 273 std::unique_lock lk{release_mutex};
274 release_cv.wait_for(lk, std::chrono::milliseconds(5), 274 release_cv.wait_for(lk, std::chrono::milliseconds(5),
275 [this]() { return queued_buffers < max_queue_size; }); 275 [this]() { return queued_buffers < max_queue_size; });
276 if (queued_buffers > max_queue_size + 3) {
277 release_cv.wait(lk, [this]() { return queued_buffers < max_queue_size; });
278 }
276} 279}
277 280
278} // namespace AudioCore::Sink 281} // namespace AudioCore::Sink