shithub: cstory

Download patch

ref: 011cb94f73747a41d6bcce21a06513c8eac28c8a
parent: 873566a19eba4de94223bef50baadc26ed8fd906
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri Apr 17 21:23:25 EDT 2020

More guards

--- a/src/Backends/Audio/WiiU.cpp
+++ b/src/Backends/Audio/WiiU.cpp
@@ -112,7 +112,9 @@
 			{
 				if (!AXIsVoiceRunning(sound->voice))
 				{
+					AXVoiceBegin(sound->voice);
 					AXFreeVoice(sound->voice);
+					AXVoiceEnd(sound->voice);
 					sound->voice = NULL;
 				}
 			}
@@ -210,7 +212,11 @@
 	OSUnlockMutex(&sound_list_mutex);
 
 	if (sound->voice != NULL)
+	{
+		AXVoiceBegin(sound->voice);
 		AXFreeVoice(sound->voice);
+		AXVoiceEnd(sound->voice);
+	}
 
 	free(sound->samples);
 	free(sound);