diff options
author | Billy Laws <blaws05@gmail.com> | 2023-03-26 21:21:04 +0200 |
---|---|---|
committer | Billy Laws <blaws05@gmail.com> | 2023-03-27 23:01:41 +0200 |
commit | 530fe24768357d4151ac6c6aca4a0e122ef8260a (patch) | |
tree | 8c00084bd414502b7f911274b7ac6bd61626b37c /src/audio_core/sink/sink_stream.h | |
parent | Run clang-format (diff) | |
download | yuzu-530fe24768357d4151ac6c6aca4a0e122ef8260a.tar yuzu-530fe24768357d4151ac6c6aca4a0e122ef8260a.tar.gz yuzu-530fe24768357d4151ac6c6aca4a0e122ef8260a.tar.bz2 yuzu-530fe24768357d4151ac6c6aca4a0e122ef8260a.tar.lz yuzu-530fe24768357d4151ac6c6aca4a0e122ef8260a.tar.xz yuzu-530fe24768357d4151ac6c6aca4a0e122ef8260a.tar.zst yuzu-530fe24768357d4151ac6c6aca4a0e122ef8260a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio_core/sink/sink_stream.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/audio_core/sink/sink_stream.h b/src/audio_core/sink/sink_stream.h index 9806e6d98..23e289c7b 100644 --- a/src/audio_core/sink/sink_stream.h +++ b/src/audio_core/sink/sink_stream.h @@ -55,9 +55,7 @@ struct SinkBuffer { class SinkStream { public: explicit SinkStream(Core::System& system_, StreamType type_) : system{system_}, type{type_} {} - virtual ~SinkStream() { - Unstall(); - } + virtual ~SinkStream() {} /** * Finalize the sink stream. @@ -203,16 +201,6 @@ public: void ProcessAudioOutAndRender(std::span<s16> output_buffer, std::size_t num_frames); /** - * Stall core processes if the audio thread falls too far behind. - */ - void Stall(); - - /** - * Unstall core processes. - */ - void Unstall(); - - /** * Get the total number of samples expected to have been played by this stream. * * @return The number of samples. @@ -266,8 +254,6 @@ private: /// Signalled when ring buffer entries are consumed std::condition_variable release_cv; std::mutex release_mutex; - std::mutex stall_guard; - std::unique_lock<std::mutex> stalled_lock; }; using SinkStreamPtr = std::unique_ptr<SinkStream>; |