From e7e5002e64297c72fc0828998c9d7fe92f522b0d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 6 Mar 2019 19:00:16 -0500 Subject: [PATCH] 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. --- src/core/hle/service/audio/audout_u.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp index bbe8134900..21f5e64c7d 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);