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
Describe the project you are working on:
Projects with a dynamic music system.
Describe the problem or limitation you are having in your project:
There's no easy way to trigger actions when an AudioStream loops.
Describe the feature / enhancement and how it helps to overcome the problem or limitation:
Another signal should be added to the AudioStream indicating that it has finished the loop and it has started again.
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
It's just another signal.
If this enhancement will not be used often, can it be worked around with a few lines of script?:
It can currently be worked around by setting the Stream to not loop automatically and playing the stream again when the finished signal is emitted.
Is there a reason why this should be core and not an add-on in the asset library?:
AudioStreamPlayer is a core feature.
Is there any chance of this being added in the future? It would be so useful for me.
To my knowledge, nobody has started working on this feature yet. A pull request would likely be merged if the implementation is sound (no pun intended), given this proposal is fairly self-contained and has garnered community support.
AnimationPlayer likely warrants a similar signal for looped animations too.
vaartis
added a commit
to vaartis/godot
that referenced
this issue
Jan 8, 2023
Describe the project you are working on:
Projects with a dynamic music system.
Describe the problem or limitation you are having in your project:
There's no easy way to trigger actions when an AudioStream loops.
Describe the feature / enhancement and how it helps to overcome the problem or limitation:
Another signal should be added to the AudioStream indicating that it has finished the loop and it has started again.
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
It's just another signal.
If this enhancement will not be used often, can it be worked around with a few lines of script?:
It can currently be worked around by setting the Stream to not loop automatically and playing the stream again when the
finished
signal is emitted.Is there a reason why this should be core and not an add-on in the asset library?:
AudioStreamPlayer is a core feature.
Related issues:
godotengine/godot#30737
godotengine/godot#33579
The text was updated successfully, but these errors were encountered: