-
Notifications
You must be signed in to change notification settings - Fork 64
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
Windower constructor should take Iterator #51
Comments
Should mention – I'm thinking specifically about passing a |
@andrewcsmith I guess the trade-off with this is that a |
I tried to figure this out today and lost. It's not just owning its own buffer, but also giving up that buffer as an iterator on each call to I do think it's important, because I would like to be able to do sample rate conversion on a continuous stream, but it should perhaps be two separate structs. One is more efficient for certain purposes, and the other is more efficient for others. |
After circling around a few ideas, I have something of a strategy now:
It would be reasonable to make this a separate type, because the original implementation is certainly more efficient. That said, the implementation of Second point: there should also be a version of Edit: It's pretty clear that for this to happen in any meaningful way we'd need to create our own trait with a streaming iterator. And discussing point 2, the way to go would probably be to have a |
How about also having some kind of "should be able to |
Right now it only takes a slice, which unfortunately means that it can't handle windowing continuous streams.
The text was updated successfully, but these errors were encountered: