# Play sound device selection

**URL:** <https://qa.fmod.com/t/play-sound-device-selection/20212>\
**Category:** FMOD Engine\
**Created:** [May 12, 2023, 6:15am UTC](https://qa.fmod.com/t/play-sound-device-selection/20212 "2023-05-12T06:15:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![15754504632](https://avatars.discourse-cdn.com/v4/letter/1/0ea827/32.png) [@15754504632](https://qa.fmod.com/u/15754504632)\
**Post date:** [May 12, 2023, 6:15am UTC](https://qa.fmod.com/t/play-sound-device-selection/20212/1 "2023-05-12T06:15:38Z")

</div>

How to select a specific device, stereo or headset when playing pcm data

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [May 14, 2023, 10:34pm UTC](https://qa.fmod.com/t/play-sound-device-selection/20212/2 "2023-05-14T22:34:55Z")

</div>

The function you’re looking for is [`System::setDriver`](https://www.fmod.com/docs/2.02/api/core-api-system.html#system_setdriver), which allows you to set the output driver for your Core FMOD System. This function only takes an `int` representing the index of the driver to set as output though - if you need to enumerate your drivers to know which to use as output, you can use [`System::getNumDrivers`](https://www.fmod.com/docs/2.02/api/core-api-system.html#system_getnumdrivers) to get the total number of drivers, and then get info for each of them with [`System::getDriverInfo`](https://www.fmod.com/docs/2.02/api/core-api-system.html#system_getdriverinfo).
