godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
87.54k stars 19.71k forks source link

AudioStreamPlaybackPolyphonic: streams with id > 1 cannot be stopped or changed #86053

Closed xerothermic06 closed 2 weeks ago

xerothermic06 commented 7 months ago

Tested versions

Reproducible in: 4.2.rc

System information

Godot v4.2.rc (1ba920fad) - Windows 10.0.22621 - Vulkan (Forward+) - dedicated GeForce RTX 2070 SUPER () - Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 Threads)

Issue description

AudioStreamPlaybackPolyphonic can play more than one stream, but all streams after the first one cannot be stopped or modulated. The is_stream_playing method returns false even when streams are audible.

Steps to reproduce

Minimal reproduction project (MRP)

polyphonic_test.zip

ditiem-games commented 1 month ago

I did a pull request to fix this bug:

https://github.com/godotengine/godot/pull/92852

Tested with my own game and the polyphonic_test.zip provided