r/oculusdev • u/statypan • Jun 19 '23
Oculus Spatializer is occasionally buggy - Superloud (ONSP AudioSource)
I am using Oculus Integration with the Oculus Spatializer Plugins (standard way). I have a weird issue and not sure why is it happening. For gameobjects created at runtime from prefabs, with sound and ONSP Audiosource, sometimes (like once every 5 times or so) the spatialized sounds gets totally bugged out and does not sound correctly at all (direction is wrong and it is much more loud). I checked all docs I could find from Oculus and have set everything according to the instructions, but it still happens from time to time. Anyone has seen a similar behaviour?
View all comments
Show parent comment
1
u/collision_circuit Jun 20 '23
Yes, exactly. Give the script a bool like playedSound that you can switch to true so it only plays the sound on the first frame in Update() like this:
internal bool playedSound;
void Update()
{
}
Hopefully this comes out right… on my phone atm