Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

- Declaration

public static void FetchAudioInputs(Action<List<CavrnusInputDevice>> onRecvDevices)

- Description

Provides a list of available microphones. This function is only 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!");
        });
    }
}
  • No labels