fixes for audio playback and float conversion
This commit is contained in:
@@ -72,6 +72,13 @@ func stop(fadeout: float = 0.0):
|
||||
node_music.stop()
|
||||
node_speech.stop()
|
||||
|
||||
# Godot 4 quirk: manual AudioStreamPlayer.stop() does not emit the `finished`
|
||||
# signal (Godot 3 did), so the all_finished/finished handlers don't run and
|
||||
# A_finished/B_finished would otherwise stay false from a prior play() —
|
||||
# leaving is_playing() stuck at true and blocking the next play().
|
||||
A_finished = true
|
||||
B_finished = true
|
||||
|
||||
node_speech.volume_db = 0
|
||||
node_music.volume_db = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user