ref: baaa888c574e075222ad70b002fe6a140a19098b
parent: 6a2b3b03e3a985937ef609830599572545fce77e
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Jun 4 09:31:40 EDT 2021
fix zero bytes write causing pcmconv to assume EOF
--- a/main/flite_plan9.c
+++ b/main/flite_plan9.c
@@ -136,7 +136,8 @@
if(fd < 0)
fd = runconv(w);
- write(fd, cst_wave_samples(w)+start, 2*size);
+ if(size > 0)
+ write(fd, cst_wave_samples(w)+start, 2*size);
if(last)
return CST_AUDIO_STREAM_STOP;