shithub: ft²

Download patch

ref: 81945108b729399d2f2a5e37c3eb6d087be983fc
parent: 4066d83d717488204a385e8ff484d13d2c10209e
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Jun 16 09:53:30 EDT 2021

update the Plan 9 port

--- a/mkfile.plan9
+++ b/mkfile.plan9
@@ -4,7 +4,7 @@
 TARG=ft2
 CFLAGS=$CFLAGS -p -Isrc -I/sys/include/npe -D__plan9__
 
-HEADERS=\
+HFILES=\
 	src/ft2_about.h\
 	src/ft2_audio.h\
 	src/ft2_audioselector.h\
@@ -11,6 +11,7 @@
 	src/ft2_bmp.h\
 	src/ft2_checkboxes.h\
 	src/ft2_config.h\
+	src/ft2_cpu.h\
 	src/ft2_diskop.h\
 	src/ft2_edit.h\
 	src/ft2_events.h\
@@ -36,8 +37,6 @@
 	src/ft2_sample_loader.h\
 	src/ft2_sample_saver.h\
 	src/ft2_sampling.h\
-	src/ft2_scopedraw.h\
-	src/ft2_scopes.h\
 	src/ft2_scrollbars.h\
 	src/ft2_structs.h\
 	src/ft2_sysreqs.h\
@@ -53,6 +52,9 @@
 	src/mixer/ft2_mix_macros.h\
 	src/mixer/ft2_silence_mix.h\
 	src/mixer/ft2_windowed_sinc.h\
+	src/scopes/ft2_scope_macros.h\
+	src/scopes/ft2_scopedraw.h\
+	src/scopes/ft2_scopes.h\
 
 OFILES=\
 	src/ft2_about.$O\
@@ -85,8 +87,6 @@
 	src/ft2_sample_loader.$O\
 	src/ft2_sample_saver.$O\
 	src/ft2_sampling.$O\
-	src/ft2_scopedraw.$O\
-	src/ft2_scopes.$O\
 	src/ft2_scrollbars.$O\
 	src/ft2_structs.$O\
 	src/ft2_sysreqs.$O\
@@ -115,7 +115,10 @@
 	src/modloaders/ft2_load_stk.$O\
 	src/modloaders/ft2_load_stm.$O\
 	src/modloaders/ft2_load_xm.$O\
+	src/scopes/ft2_scopedraw.$O\
+	src/scopes/ft2_scopes.$O\
 	src/smploaders/ft2_load_aiff.$O\
+	src/smploaders/ft2_load_flac.$O\
 	src/smploaders/ft2_load_iff.$O\
 	src/smploaders/ft2_load_raw.$O\
 	src/smploaders/ft2_load_wav.$O\
--- a/src/ft2_audio.c
+++ b/src/ft2_audio.c
@@ -5,6 +5,7 @@
 
 #include <stdio.h>
 #include <stdint.h>
+#include <math.h>
 #include "ft2_header.h"
 #include "ft2_config.h"
 #include "scopes/ft2_scopes.h"