summaryrefslogtreecommitdiffstats
path: root/src/audio_core/sink
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-10-14 15:58:17 +0200
committerGitHub <noreply@github.com>2023-10-14 15:58:17 +0200
commit36d18e457bfa7c178547b77c8e961b20baf1590f (patch)
tree807cbef7b7e742ca2dfd399dfc1a502f98b6e745 /src/audio_core/sink
parentMerge pull request #11775 from Kelebek1/draw_vertex_array (diff)
parentaudio: fix shutdown deadlock in audio renderer (diff)
downloadyuzu-36d18e457bfa7c178547b77c8e961b20baf1590f.tar
yuzu-36d18e457bfa7c178547b77c8e961b20baf1590f.tar.gz
yuzu-36d18e457bfa7c178547b77c8e961b20baf1590f.tar.bz2
yuzu-36d18e457bfa7c178547b77c8e961b20baf1590f.tar.lz
yuzu-36d18e457bfa7c178547b77c8e961b20baf1590f.tar.xz
yuzu-36d18e457bfa7c178547b77c8e961b20baf1590f.tar.zst
yuzu-36d18e457bfa7c178547b77c8e961b20baf1590f.zip
Diffstat (limited to '')
-rw-r--r--src/audio_core/sink/sink_stream.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio_core/sink/sink_stream.cpp b/src/audio_core/sink/sink_stream.cpp
index 6081352a2..d66d04fae 100644
--- a/src/audio_core/sink/sink_stream.cpp
+++ b/src/audio_core/sink/sink_stream.cpp
@@ -204,6 +204,10 @@ void SinkStream::ProcessAudioOutAndRender(std::span<s16> output_buffer, std::siz
// paused and we'll desync, so just play silence.
if (system.IsPaused() || system.IsShuttingDown()) {
if (system.IsShuttingDown()) {
+ {
+ std::scoped_lock lk{release_mutex};
+ queued_buffers.store(0);
+ }
release_cv.notify_one();
}