Skip to content
Snippets Groups Projects
Commit 64e7524f authored by Lioncash's avatar Lioncash
Browse files

service/audio/audout_u: Only actually stop the audio stream in StopAudioOut if...

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.
parent 75b41748
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment