shithub: pt2-clone

Download patch

ref: 46132b259e321547e2fcb4259fd3bf458947b1b3
parent: bc87dfb3f1cc5068df05eeb898c4eb3b8b48fa85
author: Olav Sørensen <olav.sorensen@live.no>
date: Sun Apr 26 16:16:56 EDT 2020

Some quick bugfix and compiler errors on macOS/Linux

--- a/src/pt2_audio.c
+++ b/src/pt2_audio.c
@@ -891,7 +891,7 @@
 		outStream = &editor.pat2SmpBuf[editor.pat2SmpPos];
 		for (i = 0; i < samplesTodo; i++)
 		{
-			processMixedSamplesA1200(i, out);
+			processMixedSamplesRaw(i, out);
 			outStream[i] = (out[0] + out[1]) >> 1;
 		}
 
--- a/src/pt2_mod2wav.c
+++ b/src/pt2_mod2wav.c
@@ -6,6 +6,7 @@
 #include <stdio.h>
 #include <stdint.h>
 #include <stdbool.h>
+#include <sys/stat.h> // stat()
 #include "pt2_header.h"
 #include "pt2_audio.h"
 #include "pt2_mouse.h"