summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-07 16:47:59 +0100
committerGitHub <noreply@github.com>2019-03-07 16:47:59 +0100
commitd9e9e71aecb75699c33628e3036368db13767098 (patch)
tree4c8fce0af97cc4b867b290231ef5b1ced9739cac /src/core
parentMerge pull request #2055 from bunnei/gpu-thread (diff)
parentservice/audio/audout_u: Only actually stop the audio stream in StopAudioOut if the stream is playing (diff)
downloadyuzu-d9e9e71aecb75699c33628e3036368db13767098.tar
yuzu-d9e9e71aecb75699c33628e3036368db13767098.tar.gz
yuzu-d9e9e71aecb75699c33628e3036368db13767098.tar.bz2
yuzu-d9e9e71aecb75699c33628e3036368db13767098.tar.lz
yuzu-d9e9e71aecb75699c33628e3036368db13767098.tar.xz
yuzu-d9e9e71aecb75699c33628e3036368db13767098.tar.zst
yuzu-d9e9e71aecb75699c33628e3036368db13767098.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/audio/audout_u.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp
index bbe813490..21f5e64c7 100644
--- a/src/core/hle/service/audio/audout_u.cpp
+++ b/src/core/hle/service/audio/audout_u.cpp
@@ -107,7 +107,9 @@ private:
void StopAudioOut(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
- audio_core.StopStream(stream);
+ if (stream->IsPlaying()) {
+ audio_core.StopStream(stream);
+ }
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);