Browse Source

Merge pull request #2206 from lioncash/audio-stop

service/audio/audout_u: Only actually stop the audio stream in StopAudioOut if the stream is playing
pull/15/merge
bunnei 7 years ago
committed by GitHub
parent
commit
d9e9e71aec
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/core/hle/service/audio/audout_u.cpp

4
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);

Loading…
Cancel
Save