-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Expose AudioSink::empty()
#8145
Conversation
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rebased on main to fix the diff (it was including changelog and publish changes)
examples/audio/audio_empty.rs
Outdated
@@ -0,0 +1,35 @@ | |||
use bevy::prelude::*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely a matter of preference, but I don't think we need an example just to illustrate the empty method. With that criteria we'd have thousands of examples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could update one of the existing audio example, like audio_control, to exit once the sink is empty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just think its solving a problem that doesn't need to be solved. I think we should wait until the demand for such an example presents itself.
Objective
Exposes
empty()
method forAudioSink
.Based on
0.10.0
, should be a non-breaking change.Changelog
empty()
method forAudioSink
AudioSink::empty()
example