FetchAudioInputs (Unity)
- Declaration
public static void FetchAudioInputs(Action<List<CavrnusInputDevice>> onRecvDevices)
- Description
Provides a list of available microphones. This function is useful if you wished to build your own version of the default voice/video UI.
- Sample
public class AudioSelectionMenu : MonoBehaviour
{
private void Start()
{
CavrnusFunctionLibrary.AwaitAnySpaceConnection(DisplayAudioDevices);
}
private void DisplayAudioDevices(CavrnusSpaceConnection spaceConnection)
{
CavrnusFunctionLibrary.FetchAudioInputs(devices => {
foreach (var device in devices)
Debug.Log($"{device.Name} found!");
});
}
}