Please sign in to comment.
Fix bug: the last couple of sound-samples were not flushed. We want
to avoid that sndfile messes with our header, so we switched off writing on close(); However, at this point, sndfile might not have flushed the last couple of sound-samples. So now, we switch off writing when we start seeking the Seek() to the beginning of the file.
- Loading branch information...
Showing with 17 additions and 9 deletions.