ref: eedf51a19aa55b73b918bb5bd60c9038ca9333ef
parent: f38b08c9148d85c6ea1800dacc3cc87cf6aa7ed5
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Jan 29 06:08:22 EST 2021
increase buffer size to 0.5s, write audio as early as possible after the preloaded pcm is finished
--- a/zuke.c
+++ b/zuke.c
@@ -31,7 +31,7 @@
Seekfast = 60, /* a minute */
Bps = 44100*2*2, /* 44100KHz, stereo, s16 for a sample */
- Relbufsz = Bps/5, /* 0.2 second */
+ Relbufsz = Bps/2, /* 0.5s */
};
struct Player
@@ -611,7 +611,7 @@
redraw(1);
while(1){
- n = ioreadn(io, p[1], buf, Relbufsz);
+ n = ioread(io, p[1], buf, Relbufsz);
if(n <= 0)
break;