shithub: ft2play

Download patch

ref: 1933d1c0d5a61983615cb3a1ddcafa50874a2989
parent: 9976f6fa310e511273e5ed02c5c3ebca4af5c3da
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Sat Dec 5 12:52:24 EST 2020

print position when seeking

--- a/ft2dec.c
+++ b/ft2dec.c
@@ -71,6 +71,8 @@
 	if(!startMusic())
 		sysfatal("startMusic");
 	startPlaying();
+	if(pos > 0.0)
+		fprint(2, "time: %g\n", pos);
 	for(; pos > 0.0; pos -= (double)n / 44100.0){
 		n = pos * 44100;
 		if(n < 1)