summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-03-06 19:00:16 -0500
committerGravatar Lioncash2019-03-07 03:39:01 -0500
commit64e7524f36e213d2addbc83c5fda1331089ccb8a (patch)
tree80c2fad25b437c54c26ec74419796450230a12bd /src
parentMerge pull request #2199 from lioncash/arbiter (diff)
downloadyuzu-64e7524f36e213d2addbc83c5fda1331089ccb8a.tar.gz
yuzu-64e7524f36e213d2addbc83c5fda1331089ccb8a.tar.xz
yuzu-64e7524f36e213d2addbc83c5fda1331089ccb8a.zip
service/audio/audout_u: Only actually stop the audio stream in StopAudioOut if the stream is playing
The service itself only does further actions if the stream is playing. If the stream is already stopped, then it just exits successfully.
Diffstat (limited to 'src')
-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:
107 void StopAudioOut(Kernel::HLERequestContext& ctx) { 107 void StopAudioOut(Kernel::HLERequestContext& ctx) {
108 LOG_DEBUG(Service_Audio, "called"); 108 LOG_DEBUG(Service_Audio, "called");
109 109
110 audio_core.StopStream(stream); 110 if (stream->IsPlaying()) {
111 audio_core.StopStream(stream);
112 }
111 113
112 IPC::ResponseBuilder rb{ctx, 2}; 114 IPC::ResponseBuilder rb{ctx, 2};
113 rb.Push(RESULT_SUCCESS); 115 rb.Push(RESULT_SUCCESS);