diff options
Diffstat (limited to 'firmware/pcm_playback.c')
-rw-r--r-- | firmware/pcm_playback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/pcm_playback.c b/firmware/pcm_playback.c index 04a3278d81..89e72c76a0 100644 --- a/firmware/pcm_playback.c +++ b/firmware/pcm_playback.c @@ -523,7 +523,7 @@ void pcm_flush_buffer(size_t length) while (length > 0) { copy_n = MIN(length, PCMBUF_SIZE - (unsigned)audiobuffer_pos); memcpy(&audiobuffer[audiobuffer_pos], buf, copy_n); - audiobuffer_fillpos = length; + audiobuffer_fillpos = copy_n; buf += copy_n; length -= copy_n; if (length > 0) |