Skip to content

Audio does not stop when pausing the project from the editor #68880

Open
@CookieBadger

Description

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.

image

Steps to reproduce

  • Create a new scene
  • Add an AudioStreamPlayer and attach some long enough track to it
  • Set Audio StreamPlayer to autoplay
  • Run the project from the editor
  • Pause the project from the editor

Minimal reproduction project

AudioStreamOnPause.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions