Vrc spatial audio source functions in clientsim, not after upload

when testing my worlds with ClientSim, sounds work exactly as I desire, but upon load to vrchat, the worlds are silent. Any ideas on what to check?

You mean your entire world is completely silent? How strange.

What happens if you remove the VRC_SpatialAudioSource component?

yes, completely silent. If I remove the vrc spatial audio source,
then the Max Distance setting on the Audio Source component is ignored
(in ClientSim). Iā€™ve not uploaded the world without the vrc component
as the max distance setting is important.

removing the vrc component, then attempting to republish to vrchat
give a warning about a missing vrc component (which I clicked the
ā€œfixā€ button) to add it back in, then upload proceeded.

the result: same silence.

I also tried with both the Enable Spatialization and Use AudioSource
Volume Curve options both checked and uncheckedā€¦ still silence.

AND iā€™ve assigned a 100db gainā€¦ no sound.

ok. removing the vrc spatial audio component and tweeking the
AudioSource component to just ignore spatialization worksā€¦ sadly,
but it works.

1 Like

Iā€™ve also noticed if you create a 2D audio source without the 3D spatial audio component the ā€œAutofixā€ ads one but it also disables the sound making it silent.

You can ignore or remove the component (or set it to 2D) then it works, but yes you lose stereo separation. In my experience this seems to happen more on Quest (Android) worlds than PC.

This may be klunky, but as a workaround Iā€™ve copied the audio settings from one of the speakers in ArchiTechAnonā€™s ProTV Advanced prefab (there are two, one left and one right, as well a ā€˜centerā€™ channel in the TV) then my objects behave correctly.

I donā€™t know if this is an SDK issue or if thereā€™s an obvious and easy solution weā€™re missing.

I have a world in community labs that relies heavily on spatial audio for itā€™s desired effect (8 separate sources in a circle that you stand in the middle of) , so looking for better solution to this as well.

Sorry for necroing, but hopefully this turns out to be relevant for you and/or more people. These are a few settings that made the difference for me while trying to make a waterfall sound work as intended:

  • Removing the VRC Spatial Audio component;
  • Enabling Spatialize;
    - Setting Spatial Blend to 1;
  • Using custom volume rolloff to set up my own curve (Linear may work as well, although with not as much realism).

I also ignored AutoFix. Take it with a grain of salt, as this was not tested on Quest.