diff options
author | bunnei <bunneidev@gmail.com> | 2023-06-06 02:15:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 02:15:19 +0200 |
commit | db7b106f1d9d559dadfd9ed070a8b0986609ec57 (patch) | |
tree | 164b97da4aa0f7db44ac1a9bb6f1068aa1114465 /src/audio_core/sink/sink_stream.h | |
parent | Merge pull request #10594 from liamwhite/double-patch (diff) | |
parent | audio_renderer: resolve adsp thread deadlock shutdown (diff) | |
download | yuzu-db7b106f1d9d559dadfd9ed070a8b0986609ec57.tar yuzu-db7b106f1d9d559dadfd9ed070a8b0986609ec57.tar.gz yuzu-db7b106f1d9d559dadfd9ed070a8b0986609ec57.tar.bz2 yuzu-db7b106f1d9d559dadfd9ed070a8b0986609ec57.tar.lz yuzu-db7b106f1d9d559dadfd9ed070a8b0986609ec57.tar.xz yuzu-db7b106f1d9d559dadfd9ed070a8b0986609ec57.tar.zst yuzu-db7b106f1d9d559dadfd9ed070a8b0986609ec57.zip |
Diffstat (limited to 'src/audio_core/sink/sink_stream.h')
-rw-r--r-- | src/audio_core/sink/sink_stream.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/audio_core/sink/sink_stream.h b/src/audio_core/sink/sink_stream.h index 21b5b40a1..41cbadc9c 100644 --- a/src/audio_core/sink/sink_stream.h +++ b/src/audio_core/sink/sink_stream.h @@ -13,6 +13,7 @@ #include "audio_core/common/common.h" #include "common/common_types.h" +#include "common/polyfill_thread.h" #include "common/reader_writer_queue.h" #include "common/ring_buffer.h" #include "common/thread.h" @@ -210,7 +211,7 @@ public: /** * Waits for free space in the sample ring buffer */ - void WaitFreeSpace(); + void WaitFreeSpace(std::stop_token stop_token); protected: /// Core system @@ -252,7 +253,7 @@ private: /// Set via IAudioDevice service calls f32 device_volume{1.0f}; /// Signalled when ring buffer entries are consumed - std::condition_variable release_cv; + std::condition_variable_any release_cv; std::mutex release_mutex; }; |