Switching audio output device (esp. for VR)

We’re having problems with fmod using the correct audio output device with VR. A lot of times the headset connects after the start of the application, including in the editor.

fmod seems to not handle this at all, unlike the rest of the Unity audio, which works fine.

Is this as designed? I ask because it’s a big pain for VR, and it’d really be nice if it auto-switched like Unity.

What’s the suggested way to handle switching output devices?

After some more testing, I’ve concluded that it doesn’t matter if you start the Oculus app and connect the headset first, before running the Unity editor. It seems like there’s some device hand-off that happens later anyway.

Any suggestions on how to set up an output device switch? Or is this a bug?

By default FMOD will use the system default output device.

The best way to change the output device that FMOD uses is:

Thanks for the info! If the system default output device switches while the app is running, does it update? If so, there seems to be a bug because it doesn’t update when the device switches.

This is currently the way FMOD works, only if the device list has changed (eg. device removed or added) will FMOD update it’s device list.

See this thread for more information:

We are planning to add this behavior in the next major release, as it requires internal behavior changes.