shithub: cstory

Download patch

ref: 1fbdbf6015c83517501bbd76859483222ffaaaa7
parent: 63dd995343579ef5663e5f4599dbac639b8fce08
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Jun 28 18:18:00 EDT 2020

Audio backend notes

--- a/src/Backends/Audio/SoftwareMixer.cpp
+++ b/src/Backends/Audio/SoftwareMixer.cpp
@@ -17,15 +17,15 @@
 	signed char *samples;
 	size_t frames;
 	size_t position;
-	unsigned long sample_offset_remainder;	// 16.16 fixed-point
-	unsigned long advance_delta;
+	unsigned long sample_offset_remainder;  // 16.16 fixed-point
+	unsigned long advance_delta;            // 16.16 fixed-point
 	bool playing;
 	bool looping;
-	short volume;
-	short pan_l;
-	short pan_r;
-	short volume_l;
-	short volume_r;
+	short volume;    // 8.8 fixed-point
+	short pan_l;     // 8.8 fixed-point
+	short pan_r;     // 8.8 fixed-point
+	short volume_l;  // 8.8 fixed-point
+	short volume_r;  // 8.8 fixed-point
 
 	struct Mixer_Sound *next;
 };
--- a/src/Backends/Audio/WiiU-Hardware.cpp
+++ b/src/Backends/Audio/WiiU-Hardware.cpp
@@ -1,3 +1,8 @@
+// This darned thing doesn't work - sounds just randomly refuse to play,
+// particularly the ones used by Organya.
+
+// If anyone could figure out what causes this, that would be great.
+
 #include "../Audio.h"
 
 #include <math.h>