mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-12-01 06:59:08 +00:00
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.
This commit is contained in:
parent
75b417489a
commit
64e7524f36
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue