shithub: ft2play

Download patch

ref: 9f77a97152139c86ed8c86e8aa45060084314c66
parent: 1933d1c0d5a61983615cb3a1ddcafa50874a2989
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Tue Mar 2 03:32:46 EST 2021

use actual frq when seeking

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