diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-08-25 11:58:21 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-08-25 11:58:21 -0300 |
commit | a1c03a69d2940fb69d7221800e919f4a183fec0c (patch) | |
tree | b2fc2c52657afd5cea55291a2bb70d1262a5334a /scene/3d/audio_stream_player_3d.cpp | |
parent | 3061eca1902a79668d09a4119e24a42bdd9c8a3a (diff) | |
download | redot-engine-a1c03a69d2940fb69d7221800e919f4a183fec0c.tar.gz |
added finished signals to audio stream players, fixes #9928
Diffstat (limited to 'scene/3d/audio_stream_player_3d.cpp')
-rw-r--r-- | scene/3d/audio_stream_player_3d.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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() { |