# Request for \`StaticSound.play()\` to return \`\_StaticSoundInstance\`

**URL:** <https://forum.babylonjs.com/t/request-for-staticsound-play-to-return-staticsoundinstance/61308>\
**Category:** Feature requests\
**Tags:** sound\
**Created:** [November 5, 2025, 10:39pm UTC](https://forum.babylonjs.com/t/request-for-staticsound-play-to-return-staticsoundinstance/61308 "2025-11-05T22:39:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![regna](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/regna/32/23915_2.png) [@regna](https://forum.babylonjs.com/u/regna)\
**Post date:** [November 5, 2025, 10:39pm UTC](https://forum.babylonjs.com/t/request-for-staticsound-play-to-return-staticsoundinstance/61308/1 "2025-11-05T22:39:34Z")

</div>

@docEdub Thank you for all of your help with sounds 😃

When you have time, do you think that it would be a good idea for `StaticSound.play()`([Source](https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/core/src/AudioV2/abstractAudio/staticSound.ts#L202)) to return the created `_StaticSoundInstance`?

I was also curious if`.dispose()`is ever called on this created `_StaticSoundInstance`after it’s done playing?

I’m trying to debug why my app frequently goes silent after playing ~50 cloned spatial sounds simultaneously. I’m trying to implement logic to stop older cloned sounds to allow newer cloned sounds to play, but my app is still going silent for several seconds at a time.

Thus, I was wondering if `_StaticSoundInstance` is ever disposed and hoping for `_StaticSoundInstance`to be returned in case I need to manually `dispose()`them.

Thank you so much, docEdub!

---

<div class="post-metadata">

**Author:** ![docEdub](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/docedub/32/14525_2.png) [@docEdub](https://forum.babylonjs.com/u/docEdub)\
**Post date:** [November 6, 2025, 4:00am UTC](https://forum.babylonjs.com/t/request-for-staticsound-play-to-return-staticsoundinstance/61308/2 "2025-11-06T04:00:56Z")

</div>

I’ll look into the dropout issue you’re getting. As always, though, a repro playground would help a lot 🙂

Regarding instances, I went back and forth on whether to expose them or not and decided against it because I don’t think they’re the right API for the more advanced features we’ve got in mind. The currently limited instances API is only meant for playing the same sound more than once without cutting off the sound if it’s already playing. To become more than that, the instances implementation will need to be a lot more robust and flexible, which I’m not 100% sure makes sense for our future plans.

---

<div class="post-metadata">

**Author:** ![docEdub](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/docedub/32/14525_2.png) [@docEdub](https://forum.babylonjs.com/u/docEdub)\
**Post date:** [November 6, 2025, 4:03pm UTC](https://forum.babylonjs.com/t/request-for-staticsound-play-to-return-staticsoundinstance/61308/3 "2025-11-06T16:03:49Z")

</div>

Assigned @docEdub on November 6, 2025, 4:03pm UTC



---

<div class="post-metadata">

**Author:** ![regna](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/regna/32/23915_2.png) [@regna](https://forum.babylonjs.com/u/regna)\
**Post date:** [November 6, 2025, 5:42pm UTC](https://forum.babylonjs.com/t/request-for-staticsound-play-to-return-staticsoundinstance/61308/4 "2025-11-06T17:42:47Z")

</div>

Understood, thank you so much for all your help here, docEdub 😃 Let me try to create a playground to repro this

---

<div class="post-metadata">

**Author:** ![docEdub](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/docedub/32/14525_2.png) [@docEdub](https://forum.babylonjs.com/u/docEdub)\
**Post date:** [November 6, 2025, 8:16pm UTC](https://forum.babylonjs.com/t/request-for-staticsound-play-to-return-staticsoundinstance/61308/5 "2025-11-06T20:16:12Z")

</div>

I think I found the dispose issue. Try this PR out:

> <https://github.com/BabylonJS/Babylon.js/pull/17409>

---

<div class="post-metadata">

**Author:** ![regna](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/regna/32/23915_2.png) [@regna](https://forum.babylonjs.com/u/regna)\
**Post date:** [November 7, 2025, 5:47pm UTC](https://forum.babylonjs.com/t/request-for-staticsound-play-to-return-staticsoundinstance/61308/6 "2025-11-07T17:47:35Z")

</div>

Thank you so much, docEdub, will do as soon as I can!

---

<div class="post-metadata">

**Author:** ![docEdub](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/docedub/32/14525_2.png) [@docEdub](https://forum.babylonjs.com/u/docEdub)\
**Post date:** [November 13, 2025, 5:40pm UTC](https://forum.babylonjs.com/t/request-for-staticsound-play-to-return-staticsoundinstance/61308/7 "2025-11-13T17:40:01Z")

</div>

Unassigned @docEdub on November 13, 2025, 5:40pm UTC


