MeadowlarkDAW / creek

Realtime disk streaming IO for audio
Other
112 stars 12 forks source link

fix returning garbage audio from cache after EOF #11

Closed Be-ing closed 2 years ago

Be-ing commented 2 years ago

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.

Be-ing commented 2 years ago

ping