# Get event when sound end

**URL:** <https://forum.babylonjs.com/t/get-event-when-sound-end/1467>\
**Category:** Questions\
**Created:** [February 18, 2019, 9:32pm UTC](https://forum.babylonjs.com/t/get-event-when-sound-end/1467 "2019-02-18T21:32:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abolfazl\_Miadian](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/abolfazl_miadian/32/291_2.png) [@Abolfazl\_Miadian](https://forum.babylonjs.com/u/Abolfazl_Miadian)\
**Post date:** [February 18, 2019, 9:32pm UTC](https://forum.babylonjs.com/t/get-event-when-sound-end/1467/1 "2019-02-18T21:32:29Z")

</div>

hi, I’m using BABYLON.Sound to play some sounds, I want to change a variable when a sound finished, how I can have this event?

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [February 19, 2019, 5:28pm UTC](https://forum.babylonjs.com/t/get-event-when-sound-end/1467/2 "2019-02-19T17:28:41Z")

</div>

Hey!  
you can set that:

```auto
sound.onEndedObservable.add(function() {
});

```
