shithub: cstory

Download patch

ref: 5c575a0be99ff7ed0066174e9935b787a1dd5f2d
parent: cfe523589dec2f71b01523a8f4694dacf92fc4af
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Apr 19 16:15:20 EDT 2020

Fix crash

Dammit my build process wasn't actually updating the binary I was
testing.

--- a/src/Backends/Audio/WiiU-Software.cpp
+++ b/src/Backends/Audio/WiiU-Software.cpp
@@ -81,7 +81,7 @@
 	AXVoiceOffsets offsets;
 	AXGetVoiceOffsets(voices[0], &offsets);
 
-	unsigned int current_buffer = offsets.currentOffset / (buffer_length / 2);
+	unsigned int current_buffer = offsets.currentOffset > (buffer_length / 2) ? 1 : 0;
 
 	static unsigned int last_buffer = 1;