You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible, given these changes, to get the set of all input and output devices for a given generic backend? It looks like a backend's enumerator doesn't need to implement any particular trait, so I think the answer is no.
This is a bit of a pain point for bevy_seedling, largely because it's nice DX for a user if changing the backend doesn't require propagating its generics throughout their code base. With the new setup, bevy_seedling itself would need to provide an abstraction (i.e. some trait) over backends and their device enumerators. The orphan rule means this abstraction couldn't be implemented by someone pulling in a foreign backend.
Maybe that's fine. I doubt anyone is currently bringing in a third-party backend that bevy_seedling wouldn't know about. But it does raise the question of where this abstraction should take place. At the very least, I'm curious what you think of this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds an RtAudio backend and reworks the
AudioBackendAPI to be compatible with it.