Get & set AsioNumChannel & AsioChannelList

Hi,
Trying to config channels and speakers for studio via API. I’m using unity C# to communicate with the API.

I started the script to try and get this variables output but am stuck with syntax:

void start(){
var studioSystem = FMODUnity.RuntimeManager.StudioSystem;
FMOD.Studio.CPU_USAGE cpuUsage;
studioSystem.getCPUUsage(out cpuUsage);

    var coreSystem = FMODUnity.RuntimeManager.CoreSystem;
    uint version;
    coreSystem.getVersion(out version);

    //var clist = FMODUnity.RuntimeManager.CoreSystem;
    FMOD.ADVANCEDSETTINGS settings;
    coreSystem.getAdvancedSettings(ref settings);

}

settings brings up error: use of unassigned local variable ‘settings’
what could I do to get ASIONumChannels & ASIOChannelList?

Many thanks :slight_smile:

This is more of a C# question, but you haven’t instantiated the settings variable properly.

FMOD.ADVANCEDSETTINGS settings = new FMOD.ADVANCEDSETTINGS();