summaryrefslogtreecommitdiff
path: root/src/audio_core/stream.cpp
diff options
context:
space:
mode:
authorGravatar Chloe Marcec2020-11-17 14:14:29 +1100
committerGravatar Chloe Marcec2020-11-17 14:14:29 +1100
commit9a4beac95a0f88ec312a28d06da8270aa58736e3 (patch)
treef3cbfbea9881288a32c52181ad16201f2958946a /src/audio_core/stream.cpp
parentMerge pull request #4895 from Morph1984/cave-story-plus-applet-fix (diff)
downloadyuzu-9a4beac95a0f88ec312a28d06da8270aa58736e3.tar.gz
yuzu-9a4beac95a0f88ec312a28d06da8270aa58736e3.tar.xz
yuzu-9a4beac95a0f88ec312a28d06da8270aa58736e3.zip
audren: Make use of nodiscard, rework downmixing, release all buffers
Preliminary work for upmixing & general cleanup. Fixes basic issues in games such as Shovel Knight and slightly improves the LEGO games. Upmixing stitll needs to be implemented. Audio levels in a few games will be fixed as we now use the downmix coefficients when possible instead of supplying our own
Diffstat (limited to 'src/audio_core/stream.cpp')
-rw-r--r--src/audio_core/stream.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/audio_core/stream.cpp b/src/audio_core/stream.cpp
index 4bbb1e0c4..3f11b84ae 100644
--- a/src/audio_core/stream.cpp
+++ b/src/audio_core/stream.cpp
@@ -136,4 +136,13 @@ std::vector<Buffer::Tag> Stream::GetTagsAndReleaseBuffers(std::size_t max_count)
136 return tags; 136 return tags;
137} 137}
138 138
139std::vector<Buffer::Tag> Stream::GetTagsAndReleaseBuffers() {
140 std::vector<Buffer::Tag> tags;
141 while (!released_buffers.empty()) {
142 tags.push_back(released_buffers.front()->GetTag());
143 released_buffers.pop();
144 }
145 return tags;
146}
147
139} // namespace AudioCore 148} // namespace AudioCore