Expose AudioStreamPlayer{2D,3D}::set_playing
and remove AudioStreamPlayer::{2D,3D}::_is_active
#95375
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.
_is_active
method seems to be unused, so it was removed._set_playing
method is now exposed, as the setter of theplaying
property.play
method can't be used as a setter because it takes afloat
parameter instead of abool
parameter.Alternative
Make the
playing
property read-only, so it has no setter andset_playing
is not exposed. Users can use the already exposedplay
/stop
methods instead. This would break compatibility in C#, and it's not technically doing the same thing as_set_playing
does although I'm not familiar enough with the code to know if the differences here matter.