AudioStreamPlayback method _stop()
is not called when AudioStreamPlayer.stop()
is called
#97466
Labels
Milestone
_stop()
is not called when AudioStreamPlayer.stop()
is called
#97466
Tested versions
4.2.2.stable, 4.3.stable, 4.4.dev2
System information
Godot v4.3.stable - Windows 10.0.19045
Issue description
When calling
AudioStreamPlayer.stop()
, the correspondingAudioStreamPlayback
's_stop()
method is not called. The documentation for AudioStreamPlayback._stop() says it should get called in this case.Steps to reproduce
AudioStreamPlayback
, and override the_start()
and_stop()
methods.AudioStream
and a correspondingAudioStream
resource that uses this script. Override theAudioStream._instantiate_playback()
method, and return a reference to anAudioStreamPlayback
child object from the previous step.AudioStreamPlayer
node. Set itsstream
property to theAudioStream
resource from the previous step. Add a script to the node and call theplay()
method, followed by a call to thestop()
method. Run the project and note thatAudioStreamPlayback._stop()
is not called.Minimal reproduction project (MRP)
playback-stop-mrp.zip
When you run the project, observe that the print statement in
AudioStreamPlaybackChild._stop()
is not executed.The text was updated successfully, but these errors were encountered: