-
-
Notifications
You must be signed in to change notification settings - Fork 20.1k
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
AudioStreamPlayer finished() signal acts as stop() #33579
Comments
Sounds like stopping AudioStreamPlayer emits |
Makes sense. Which means my method is dead wrong? Or maybe the two methods should be different? There's a redundancy here. |
It looks like by design to me, although I'm not an audio expert to say 100% sure. |
Mmm. I'd like a core contributor opinion before closing the issue. To me it seems a bit redundant. |
I believe stopping forcibly should not ever mean that a track is finished. See a fix at #33602. Also would be good if this reproduction project is linked: |
The alternative to this could be introducing
|
Ok makes more sense ! Should I close this issue ? Sorry, still beginner in how issues work. |
@rezgi I think you've raised a valid point, so I'd keep this issue open for now until the issue is fixed, which will be closed automatically for you, most of the time. 🙂 |
Oh ok I see. I've seen commits and stuff about this, and since I'm not experienced, I'm not confident if I raise a valid point or not. So I'm leaving this issue opened. Thanks ! |
I just encountered it myself and I can say it's a bug. |
Looks like it's fixed both in 4.0 and the newest 3.5 beta. |
Godot version:
3.2 beta 1
OS/device including version:
OSX Sierra
Issue description:
I have a button that stops the music and an AudioStreamPlayer
finished()
signal with$music.play()
in it to play again. When I press the button to stop the music, it plays again, and I guess that Godot executes thestop()
method the same way as thefinished()
signal ?Btw I have no loop option in the inspector I guess it's because it's a
wav
file ?Steps to reproduce:
In any project, add a
Button
and anAudioStreamPlayer
with a song (1mn in my case but a shorter one would be better for testing)._on_button_pressed()
->$AudioStreamPlayer.stop()
and_on_AudioStreamPlayer_finished() -> $AudioStreamPlayer.play()
and you'll notice that when you press the stop button, the song plays again.Minimal reproduction project:
Empty Godot project with one
wav
file.The text was updated successfully, but these errors were encountered: