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
Change Stream to hold a generic reference to PortAudio #120
Comments
Hmmm I think it might be fine to just store an From what I can tell, it seems like you just want a single |
The |
@tiborgats thanks for pitching in! I think I'm struggling a bit to see why it forces you to use |
Currently I have one module dealing with audio, and I have these declarations there:
The above works fine. But if I try to do this:
I get the following error:
|
@tiborgats ahh I see. I haven't had a chance to put too much thought into this yet, but I guess one alternative would be to make |
How about adding a lifetime parameter to |
…d::sync::Arc. Closes RustAudio#120.
Currently
Stream
requires a&'a PortAudio
. This prevents placing both into the same structure. Perhaps this relationship could be changed such thatStream
requires aT where T: Deref<PortAudio>
such that you could use anRc<PortAudio>
instead, allowing greater flexibility when structuring code.The text was updated successfully, but these errors were encountered: