# Unity setDriver not working

**URL:** <https://qa.fmod.com/t/unity-setdriver-not-working/17025>\
**Category:** Unity\
**Created:** [April 12, 2021, 4:23am UTC](https://qa.fmod.com/t/unity-setdriver-not-working/17025 "2021-04-12T04:23:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cngsystemsaustralia](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@cngsystemsaustralia](https://qa.fmod.com/u/cngsystemsaustralia)\
**Post date:** [April 12, 2021, 4:23am UTC](https://qa.fmod.com/t/unity-setdriver-not-working/17025/1 "2021-04-12T04:23:08Z")

</div>

Hi  
I’ve multiple audio outputs (drivers) on my windows PC. I’m trying to change the output driver in runtime.  
I’m using the setDriver method, it shows result as “OK” but nothing changes, audio still goes through default device.  
Here’ the C# code:

FMOD.Studio.System.create(out var mainSystem);  
mainSystem.getCoreSystem(out CoreSystem);

CoreSystem.getNumDrivers(out int numDrivers);  
for (int i = 0; i \< numDrivers; i++)  
{  
var d = CoreSystem.getDriverInfo(i, out string name, 100, out var guid, out int systemRate, out var spearkerMode, out int speakerModeChannels);  
print($"{i} - {name} - {systemRate} - {spearkerMode} - {speakerModeChannels}");  
}

var res = CoreSystem.setDriver(3);  
print($“Change Result: {res}”);

What am I doing wrong?  
I’ve tried following versionss:  
FMOD - 20108, 20107  
Unity - 2020.3.3f1, 2019.4.22f1

---

<div class="post-metadata">

**Author:** ![cngsystemsaustralia](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@cngsystemsaustralia](https://qa.fmod.com/u/cngsystemsaustralia)\
**Post date:** [April 12, 2021, 4:29am UTC](https://qa.fmod.com/t/unity-setdriver-not-working/17025/2 "2021-04-12T04:29:15Z")

</div>

Ok found the solution,  
all I had to do was, instead of creating the coreSystem, use like this.

var res = FMODUnity.RuntimeManager.CoreSystem.setDriver(3);  
print($“Change Result: {res}”);

WORKS NOW!!!
