summaryrefslogtreecommitdiffstats
path: root/src/audio_core/stream.cpp
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2018-09-12 19:07:16 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2018-09-12 19:09:14 +0200
commit957ddab6796cb6f644c60993c3035d8bd9c0a398 (patch)
tree17c3d0a96f47959a9c26d4f202003e5c2858fde3 /src/audio_core/stream.cpp
parentcubeb_sink: Downsample arbitrary number of channels (diff)
downloadyuzu-957ddab6796cb6f644c60993c3035d8bd9c0a398.tar
yuzu-957ddab6796cb6f644c60993c3035d8bd9c0a398.tar.gz
yuzu-957ddab6796cb6f644c60993c3035d8bd9c0a398.tar.bz2
yuzu-957ddab6796cb6f644c60993c3035d8bd9c0a398.tar.lz
yuzu-957ddab6796cb6f644c60993c3035d8bd9c0a398.tar.xz
yuzu-957ddab6796cb6f644c60993c3035d8bd9c0a398.tar.zst
yuzu-957ddab6796cb6f644c60993c3035d8bd9c0a398.zip
Diffstat (limited to 'src/audio_core/stream.cpp')
-rw-r--r--src/audio_core/stream.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/audio_core/stream.cpp b/src/audio_core/stream.cpp
index 49c6efc85..84dcdd98d 100644
--- a/src/audio_core/stream.cpp
+++ b/src/audio_core/stream.cpp
@@ -73,6 +73,7 @@ static void VolumeAdjustSamples(std::vector<s16>& samples) {
void Stream::PlayNextBuffer() {
if (!IsPlaying()) {
// Ensure we are in playing state before playing the next buffer
+ sink_stream.Flush();
return;
}
@@ -83,6 +84,7 @@ void Stream::PlayNextBuffer() {
if (queued_buffers.empty()) {
// No queued buffers - we are effectively paused
+ sink_stream.Flush();
return;
}