resonance-audio / resonance-audio-unity-sdk

Resonance Audio SDK for Unity
https://resonance-audio.github.io/resonance-audio/develop/unity/getting-started
Other
297 stars 38 forks source link

Spatialization and panning bug in Unity 2019.3.6f1 #74

Open Franmvoisard opened 3 years ago

Franmvoisard commented 3 years ago

Hi! I have a strange issue in my project. I have a door that knocks when the player grabs an item beside that, the bug occurs here, the sound is played without panning correctly, but if I disable, then enable again the audio source component, the sound plays correctly with panning, reverb, and spatialized too.

What could it be? I need to solve this ASAP, please.

Steps to reproduce: 1- Create a resonance audio source with high source directivity and set it to play on awake, o with a button in the UI to play whenever you want. 2- Create an audio source listener at the left of the resonance audio source. 3- Press play in the editor. 4- Play the sound with the UI button or let the "play on awake" to reproduce the sound. 5- The sound will be played with reverb but without correct panning and spatialization. 6- Without stop the editor, select the audiosource and disable it's AudioSource Component. 7- Enable it again. 8- Now the sound plays correctly.

Extra Details:

Any idea? Thanks for reading.