shithub: ft2play

Download patch

ref: 723ca0d4b4da52cf0c52e84fa9b81ba11ae5ad31
parent: 0b77c1f82cfa664537763b8d7745797fa42292ef
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Dec 3 17:09:40 EST 2020

exit when song ends, MAYBE?

--- a/ft2dec.c
+++ b/ft2dec.c
@@ -63,12 +63,12 @@
 	for(;;){
 		mix_UpdateBuffer(s, nelem(s)/2);
 		write(1, s, sizeof(s));
+		if(dump_EndOfTune(song.len-1))
+			break;
 	}
 
-/* EH?
 	stopMusic();
 	freeMusic();
 
 	exits(nil);
-*/
 }