# Spatial sound - listener orientation & audioListenerPositionProvider

**URL:** <https://forum.babylonjs.com/t/spatial-sound-listener-orientation-audiolistenerpositionprovider/36771>\
**Category:** Bugs\
**Tags:** audio\
**Created:** [December 21, 2022, 7:46pm UTC](https://forum.babylonjs.com/t/spatial-sound-listener-orientation-audiolistenerpositionprovider/36771 "2022-12-21T19:46:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miro](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/miro/32/28886_2.png) [@Miro](https://forum.babylonjs.com/u/Miro)\
**Post date:** [December 21, 2022, 7:46pm UTC](https://forum.babylonjs.com/t/spatial-sound-listener-orientation-audiolistenerpositionprovider/36771/1 "2022-12-21T19:46:53Z")

</div>

Listener orientation doesn’t get updated when using the `audioListenerPositionProvider`

> **[Babylon.js Playground](https://playground.babylonjs.com/#2AH4YH%2362)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

Steps to reproduce:

1. Move left and right inside of the closest sphere - the spatial sound should be ok
2. Turn 180 degrees
3. Move left and right - the spatial sound is reversed (not updated)

Without the audioListenerPositionProvider part, it works as expected - correct orientation with any camera rotation

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [December 21, 2022, 9:23pm UTC](https://forum.babylonjs.com/t/spatial-sound-listener-orientation-audiolistenerpositionprovider/36771/2 "2022-12-21T21:23:21Z")

</div>

It is not really a but a rather pretty annoying missing behavior…

Basically, if you chose a custom position, there is no way for the framework to know the orientation to set.

In the cases where the previous function has been used, it was not an issue but I agree it is a concern in the general case.

Would it be ok for you if I also add a custom orientation Provider so you could pick the orientation you want ???

---

<div class="post-metadata">

**Author:** ![Miro](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/miro/32/28886_2.png) [@Miro](https://forum.babylonjs.com/u/Miro)\
**Post date:** [December 22, 2022, 8:17pm UTC](https://forum.babylonjs.com/t/spatial-sound-listener-orientation-audiolistenerpositionprovider/36771/3 "2022-12-22T20:17:31Z")

</div>

@sebavan makes sense, and yes it would solve the issue, thanks!

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [December 22, 2022, 9:53pm UTC](https://forum.babylonjs.com/t/spatial-sound-listener-orientation-audiolistenerpositionprovider/36771/4 "2022-12-22T21:53:11Z")

</div>

Should be ok with [Add audioListenerRotationProvider by sebavan · Pull Request #13375 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/pull/13375)
