MeadowlarkDAW / creek

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

fix-write-stream #40

Closed BillyDM closed 1 year ago

BillyDM commented 1 year ago

Fixes an issue where the write stream may not write the last remaining samples in the buffer when closed.

Also fixes an issue where WriteStream::finish_complete() didn't actually work because a closed write stream never polls for messages from the server. While the easiest solution would be to just add self.poll() inside WriteStream::finish_complete(), this would require a change for self to be mutable which would be a breaking change. So as a temporary solution until the next major version I made the WriteStream::poll() method public.