# Switching audio output device (esp. for VR)

**URL:** <https://qa.fmod.com/t/switching-audio-output-device-esp-for-vr/15386>\
**Category:** Unity\
**Created:** [January 15, 2020, 1:10am UTC](https://qa.fmod.com/t/switching-audio-output-device-esp-for-vr/15386 "2020-01-15T01:10:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [January 21, 2020, 12:16am UTC](https://qa.fmod.com/t/switching-audio-output-device-esp-for-vr/15386/3 "2020-01-21T00:16:17Z")

</div>

By default FMOD will use the system default output device.

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

- Find out how many devices there are ([`FMOD::System::getNumDrivers`](https://www.fmod.com/resources/documentation-api?version=2.0&page=core-api-system.html#system_getnumdrivers)).
- For each driver get name ([`FMOD::System::getDriverInfo`](https://www.fmod.com/resources/documentation-api?version=2.0&page=core-api-system.html#system_getdriverinfo)).
- Use the name to determine the index of the wanted device.
- Set the new driver ([`FMOD::System::setDriver`](https://www.fmod.com/resources/documentation-api?version=2.0&page=core-api-system.html#system_setdriver)).

---

_[View the full topic](https://qa.fmod.com/t/switching-audio-output-device-esp-for-vr/15386)._
