Skip to content

AudioStreamPlayer.stop() does not stop playback if playback was started in the same frame #37148

Open
@KirsonWorks

Description

@KirsonWorks

Godot version:
3.2.1

OS/device including version:
Windows 10 64-bit

Issue description:
AudioStreamPlayer does not stop playback if stream position is zero.

In my project sometimes there are situations when states change very quickly, one state plays sound effect, another stops it.

I found out that

$sfx.play()
$sfx.stop()

is not working as expected.

Steps to reproduce:
Add AudioStreamPlayer, load sound stream and execute play() stop() methods in once block.

Minimal reproduction project:
AudioStreamPlayerPlayStop.zip

Metadata

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