summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-02-25 09:40:34 -0500
committerGravatar Lioncash2019-02-25 09:40:37 -0500
commit04d7b7e09d7ae6db878a4f9d768de82d2b906efa (patch)
tree3318052157093975c617d8a7f0c63c6dc4c4c43e /src
parentaudio_core/cubeb_sink: Add override specifier to destructor (diff)
downloadyuzu-04d7b7e09d7ae6db878a4f9d768de82d2b906efa.tar.gz
yuzu-04d7b7e09d7ae6db878a4f9d768de82d2b906efa.tar.xz
yuzu-04d7b7e09d7ae6db878a4f9d768de82d2b906efa.zip
audio_core/cubeb_sink: Initialize CubebSinkStream's last_frame data member
Ensures that all member variables are initialized in a deterministic manner across the board.
Diffstat (limited to 'src')
-rw-r--r--src/audio_core/cubeb_sink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/cubeb_sink.cpp b/src/audio_core/cubeb_sink.cpp
index 404714b58..dc45dedd3 100644
--- a/src/audio_core/cubeb_sink.cpp
+++ b/src/audio_core/cubeb_sink.cpp
@@ -98,7 +98,7 @@ private:
98 u32 num_channels{}; 98 u32 num_channels{};
99 99
100 Common::RingBuffer<s16, 0x10000> queue; 100 Common::RingBuffer<s16, 0x10000> queue;
101 std::array<s16, 2> last_frame; 101 std::array<s16, 2> last_frame{};
102 std::atomic<bool> should_flush{}; 102 std::atomic<bool> should_flush{};
103 TimeStretcher time_stretch; 103 TimeStretcher time_stretch;
104 104