Conversation
Lazy ByteString deliver works. Cleanup still missing
This will allow the user of openInput to clean up used resources. Currently all inputCleanups do nothing. Only `openByteStringReader` needs this at the moment.
|
I took a stab at implementing cleanup for openByteStringReader |
|
I was hoping the audio PR would land sooner, so I put off looking closely at this. I'm sorry for how that's delayed things. All in all, this looks like a great addition. I have a couple questions:
|
No problem!
Sure, would it make sense to put this in a
Agree that a solution taking advantage of garbage collection would be good. I'm not too familiar with FFI stuff, so I'll investigate. |
Sorry about that. Let me fire it up and try to get it polished again. |
fmt = -1 will cause an assert (eventual abort) We avoid that by using fail
Lazy ByteString deliver works. Cleanup still missing
This is working, but incomplete. I would appreciate some feedback on the direction, especially how to handle cleanup. I'm thinking of changing the API of
openInputby also returning acleanupInputaction and combining with the existing cleanup inframe*Readerfunctions.Also, any other feedback on what would make this mergeable would be nice.
Issue #54
(I added this on top of the audio branch, as I presumed this would be the most likely point of merge in the future, let me know if I should bring it over to master instead)