MeadowlarkDAW / creek

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

[do not merge] demonstration of end-of-file looping bug #10

Closed Be-ing closed 2 years ago

Be-ing commented 2 years ago

Calling ReadDiskStream::read_stream after the Err(ReadError::EndOfFile) error is returned produces strange behavior. I would expect read_stream to continue returning Err(ReadError::EndOfFile). Instead, what seems to happen is that subsequent calls to read_stream loop whatever happened to be in the cache before the end of the file was reached. You can hear this by running the demo player in this branch and immediately seeking near the end of the file. You will hear part of the end of the file plus some silence output in a loop.

Be-ing commented 2 years ago

Fixed by #11