When I play a sound and it ends the script should receive “sound_done” message according to API, but there is no such message.
Repro:
Empty Project.zip (4.7 MB)
function init(self)
--sound.play("#music", { gain = 1.0 })
msg.post("#music", "play_sound")
end
function on_message(self, message_id, message, sender)
print("ALL MSG", message_id)
if message_id == hash("sound_done") then
print("DONE")
end
end
and not even a single message is received