diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vox.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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; |