Remove the fsync calls from stdout and pipe backends. Slight edits to man file.

This commit is contained in:
Mike Brady
2020-05-24 19:47:04 +01:00
parent 9280e1430b
commit c1f973dde7
7 changed files with 347 additions and 1524 deletions
+1 -4
View File
@@ -56,10 +56,7 @@ static int play(void *buf, int samples) {
}
static void stop(void) {
// Flush stdout when play stops instead
if (fd > 0)
if (fsync(fd) != 0)
debug(1, "Error flushing STDOUT when play stopped: \"%s\".", strerror(errno));
// Do nothing when play stops
}
static int init(__attribute__((unused)) int argc, __attribute__((unused)) char **argv) {