Explorar el Código

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
bunnei hace 7 años
padre
commit
d9e9e71aec
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/core/hle/service/audio/audout_u.cpp

+ 3 - 1
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);