From a1c03a69d2940fb69d7221800e919f4a183fec0c Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 25 Aug 2017 11:58:21 -0300 Subject: added finished signals to audio stream players, fixes #9928 --- scene/3d/audio_stream_player_3d.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scene/3d/audio_stream_player_3d.cpp') diff --git a/scene/3d/audio_stream_player_3d.cpp b/scene/3d/audio_stream_player_3d.cpp index 6cfcc73823..6efdf25f0d 100644 --- a/scene/3d/audio_stream_player_3d.cpp +++ b/scene/3d/audio_stream_player_3d.cpp @@ -533,6 +533,7 @@ void AudioStreamPlayer3D::_notification(int p_what) { if (!active) { set_fixed_process_internal(false); _change_notify("playing"); //update property in editor + emit_signal("finished"); } } } @@ -898,6 +899,8 @@ void AudioStreamPlayer3D::_bind_methods() { BIND_ENUM_CONSTANT(DOPPLER_TRACKING_DISABLED); BIND_ENUM_CONSTANT(DOPPLER_TRACKING_IDLE_STEP); BIND_ENUM_CONSTANT(DOPPLER_TRACKING_FIXED_STEP); + + ADD_SIGNAL(MethodInfo("finished")); } AudioStreamPlayer3D::AudioStreamPlayer3D() { -- cgit v1.2.3