Once the end of the file is reached, the EndOfFile error should be returned indefinitely until a seek is done. This fixes the bug demonstrated in #10. However, I suspect there may still be another bug lurking because currently without this PR, the playhead gets reset to the start of the file but the contents of the file are no longer read; audio is only returned from the cache.
Once the end of the file is reached, the EndOfFile error should be returned indefinitely until a seek is done. This fixes the bug demonstrated in #10. However, I suspect there may still be another bug lurking because currently without this PR, the playhead gets reset to the start of the file but the contents of the file are no longer read; audio is only returned from the cache.