diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-03-09 06:59:45 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-03-09 06:59:45 (GMT) |
commit | 89748bf53d67dbbe8a54244c2b273a0558a27565 (patch) | |
tree | c3705f026f2598de75e6d063b1bd1d7dc7742823 | |
parent | 02f845d5bf73b49c1bd0a861210dfea9cb10fea8 (diff) |
Don't play the whole last chunk in untracked mode
-rw-r--r-- | src/espeak.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/espeak.c b/src/espeak.c index 1639638..9331fb5 100644 --- a/src/espeak.c +++ b/src/espeak.c @@ -262,7 +262,7 @@ play(Econtext *self, Espin *spin, gsize size_to_play) inline gsize whole(Espin *spin, gsize size_to_play) { gsize spin_size = g_memory_output_stream_get_data_size(spin->sound); - return MIN(size_to_play, spin_size); + return MIN(size_to_play, spin_size - spin->sound_offset); } inline gsize word(Econtext *self, Espin *spin, gsize size_to_play) |