-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce new Bytes InputSource #55
base: audio
Are you sure you want to change the base?
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
openInput
by also returning acleanupInput
action and combining with the existing cleanup inframe*Reader
functions.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)