aboutsummaryrefslogtreecommitdiff
path: root/scene/3d/audio_stream_player_3d.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-08-25 11:58:21 -0300
committerJuan Linietsky2017-08-25 11:58:21 -0300
commita1c03a69d2940fb69d7221800e919f4a183fec0c (patch)
treeb2fc2c52657afd5cea55291a2bb70d1262a5334a /scene/3d/audio_stream_player_3d.cpp
parent3061eca1902a79668d09a4119e24a42bdd9c8a3a (diff)
downloadgodot-a1c03a69d2940fb69d7221800e919f4a183fec0c.tar.gz
godot-a1c03a69d2940fb69d7221800e919f4a183fec0c.tar.zst
godot-a1c03a69d2940fb69d7221800e919f4a183fec0c.zip
Diffstat (limited to 'scene/3d/audio_stream_player_3d.cpp')
-rw-r--r--scene/3d/audio_stream_player_3d.cpp3
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 6cfcc7382..6efdf25f0 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() {