summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vox.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/vox.c b/src/vox.c
index 9d3d098..d98a81d 100644
--- a/src/vox.c
+++ b/src/vox.c
@@ -200,9 +200,7 @@ static ssize_t vox_fill(xas_vox *vox,
readcount;
if (vox->state != XAS_VOX_ACTIVE) {
- xas_audio_zero(vox->format, samples, 0, count);
-
- return count;
+ return 0;
}
if ((readlen = read(vox->stdout,
@@ -225,9 +223,7 @@ static ssize_t vox_fill(xas_vox *vox,
readcount);
}
- xas_audio_zero(vox->format, samples, readcount, count-readcount);
-
- return count;
+ return readcount;
error_read:
return -1;