setListenerPosition problems

Hello! Have problems with this. Dunno how to turn off the sound β†’ setListenerPosition. It’s UI or background music

update() {

    this.sound.setListenerPosition(player.x, player.y);
    }

setListenerPosition effects all music in game. I need to disable it for background music but cant see the way how to do it. Any help appreciated! TYSM! :pray:t2::pray:t2:

1 Like

It’s not possible to set the listener position per sound.

oh i see! thanks for ur answer! have a nice day!

So i should choose either background music or spatial Audio looks like?

found the way! hope this can help someone! the sound should goes as

this
.
backgroundMusic

new

Audio
(
β€˜path/to/background-music.mp3’
);

this
.
backgroundMusic
.
loop

true
;

this
.
backgroundMusic
.
volume
= 0.5;
this.backgroundMusic.play();