diff options
author | Lioncash <mathew1800@gmail.com> | 2019-03-07 01:00:16 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-03-07 09:39:01 +0100 |
commit | 64e7524f36e213d2addbc83c5fda1331089ccb8a (patch) | |
tree | 80c2fad25b437c54c26ec74419796450230a12bd /src/core/hle/service/audio | |
parent | Merge pull request #2199 from lioncash/arbiter (diff) | |
download | yuzu-64e7524f36e213d2addbc83c5fda1331089ccb8a.tar yuzu-64e7524f36e213d2addbc83c5fda1331089ccb8a.tar.gz yuzu-64e7524f36e213d2addbc83c5fda1331089ccb8a.tar.bz2 yuzu-64e7524f36e213d2addbc83c5fda1331089ccb8a.tar.lz yuzu-64e7524f36e213d2addbc83c5fda1331089ccb8a.tar.xz yuzu-64e7524f36e213d2addbc83c5fda1331089ccb8a.tar.zst yuzu-64e7524f36e213d2addbc83c5fda1331089ccb8a.zip |
Diffstat (limited to 'src/core/hle/service/audio')
-rw-r--r-- | src/core/hle/service/audio/audout_u.cpp | 4 |
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: 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); |