You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can reproduce on master but not really audio bug, GDScript quirk. (see #41319 or one of the many other instances)
This line $AudioStreamPlayer.stream.loop = false
gets interpreted as
change loop property of stream
because stream is now changed, change the stream property of the stream player
changing streams stops the the stream as one might put some completely new stream in there.
I tested, it's really a GDScript bug. This has been fixed in 4.0, probably by #72398.
In 3.5 the bug is still reproducible (I haven't tested in 3.x), the workarounds mentioned by DavidSichma work:
# The bug. It works in 4.0 RC 2.$AudioStreamPlayer.stream.loop=false# OK.$AudioStreamPlayer.get_stream().loop=false# OK.$AudioStreamPlayer.stream.set_loop(false)
# OK.varstream=$AudioStreamPlayer.streamstream.loop=false
Godot version:
3.2.3.stable
OS/device including version:
Manjaro Linux, 5.8.11-1-MANJARO
Issue description:
If an AudioStreamPlayer is playing and you change any of the properties of the stream the audio stops.
Steps to reproduce:
Minimal reproduction project:
AudioStreamPropertiesStopsAudio.zip
The text was updated successfully, but these errors were encountered: