diff options
| author | XANTRONIX Development | 2022-03-07 11:56:31 -0500 | 
|---|---|---|
| committer | XANTRONIX Development | 2022-03-07 11:56:31 -0500 | 
| commit | e7cc1aeb86e37cd55bb010a7ee26db39111db494 (patch) | |
| tree | 249aa0024716cf8c7146240ca9f9bca96aef3c34 | |
| parent | 64b0b6322bfe2d055346f2a5b150f4023ba447d0 (diff) | |
| download | xas-e7cc1aeb86e37cd55bb010a7ee26db39111db494.tar.gz xas-e7cc1aeb86e37cd55bb010a7ee26db39111db494.tar.bz2 xas-e7cc1aeb86e37cd55bb010a7ee26db39111db494.zip | |
Do not fill buffers when speech output is complete
| -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; | 
 
    