Skip to content
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

await does not work when waiting for audio signals #88264

Closed
MBCX opened this issue Feb 13, 2024 · 1 comment
Closed

await does not work when waiting for audio signals #88264

MBCX opened this issue Feb 13, 2024 · 1 comment

Comments

@MBCX
Copy link

MBCX commented Feb 13, 2024

Tested versions

  • Reproducible in Godot 4.3.dev3.
  • Not reproducible in Godot 4.3.dev2 and before, neither Godot 4.2.x

System information

Godot v4.3.dev (d335281) - Windows 10.0.22631 - GLES3 (Compatibility) - Radeon RX 580 Series (Advanced Micro Devices, Inc.; 31.0.21910.5) - Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz (6 Threads)

Issue description

When using the await keyword to wait for an audio to finish with the finished signal, the code gets stuck and never executes the line after, even after the audio itself finished playing.

This issue only occurs for audio signals, others like await get_tree().create_timer(1.0).timeout behave fine.

Here's 2 videos, first in Godot 4.2.
TestGodot42.webm

And Godot 4.3.dev3
TestGodot43.webm

Steps to reproduce

  1. Have a AudioStreamPlayer node attached to your scene
  2. Include it in your script.
  3. Play the audio, and await <audio>.finished
  4. Put a statement like print("Here") and notice how it never gets printed.

Minimal reproduction project (MRP)

Music Finish Await.zip

@KoBeWi
Copy link
Member

KoBeWi commented Feb 13, 2024

Duplicate of #87802

@KoBeWi KoBeWi marked this as a duplicate of #87802 Feb 13, 2024
@KoBeWi KoBeWi closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants