Hey, I want to make some sort of DAW using Unity and FMOD, but I see very little about how to allow the user to view available drivers and set one that they like. I also dont understand how to get live sound going such that the input sound from whatever channel the user selects goes directly to the output with whatever effect chain I want to put onto it. Thank you!
Hi,
Using System::getNumDrivers() to retrieve the connected drivers, which you can then use a for loop with System::getDriverInfo to iterate through and display the information as you wish.
For example:
FMOD.RESULT result = FMODUnity.RuntimeManager.CoreSystem.getNumDrivers(out int numDrivers);
if (result == FMOD.RESULT.OK)
{
for (int i = 0; i < numDrivers; i++)
{
result = FMODUnity.RuntimeManager.CoreSystem.getDriverInfo(i, out string name, 256, out System.Guid GUID, out int rate, out FMOD.SPEAKERMODE mode, out int numChannesl);
if (result == FMOD.RESULT.OK)
{
Debug.Log($"Index: {i} is {name}");
}
else
{
Debug.Log($"Failed to get dirver info for index {i} with result {result}");
}
}
}
else
{
Debug.Log($"Failed to get num drivers");
}
Could I get some more information on this issue? How are you playing the sounds? How are you creating the effect chains?