-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Audio does not stop when pausing the project from the editor #68880
Comments
@ExquisiterEmil Please upload a minimal reproduction project to make this easier to troubleshoot. Does this occur in 3.5.1? |
Pausing audio streams works fine in beta5 when the scene tree is paused with: And the AudioStreamPlayer process_mode is set to PROCESS_MODE_PAUSABLE. Look at the help in Node: ProcessMode enum. Change it in the inspector under Node, or in code:
Yes the editor pause button does not stop the music player in game with the above process_mode. That's a bug. However, I never use that button. Build pausing into your game with the code above and use that. |
@Calinou sure, minimal repro project added, I just thought that this is very very simple. Yes it occurs in 3.5.1.
@tinmanjuggernaut if you don't use a feature, that does not mean that it being broken is unproblematic. I know that |
I acknowledged that it is a bug. |
Probably this wont add too much value because I didn't find out a solution, but at least I could shed some light into this issue. |
BTW I tested this on 4.3 stable and the behavior is the same described at the top of this issue. |
It doesn't stop either when disabling "Audio Listener" from the viewport menu. But sound won't play if it is disabled before playing. It also plays correctly when it is enabled while playing. |
#99555 can likely be paired with pausing the project (or when a breakpoint is reached) to mute audio in this situation. |
Fixes godotengine#68880 Implementation based on godotengine#99555
Fixes godotengine#68880 Implementation based on godotengine#99555
Fixes godotengine#68880 Implementation based on godotengine#99555
Godot version
4.0 beta5
System information
Windows10, AMD Ryzen 9 3900XT, RTX3070, Vulkan
Issue description
When audio is being played from an AudioStreamPlayer and the game is started, upon pausing the game from the Editor (see image), the audio keeps playing. This is especially problematic when the audio timing is critical for a game (i.e. Rythm games). The same happens when playing the audio from an Audio Playback Track of an animation player, even though the animation itself pauses and resumes properly, any audio just goes on.
Steps to reproduce
Minimal reproduction project
AudioStreamOnPause.zip
The text was updated successfully, but these errors were encountered: