Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

- 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

Code Block
languagec#
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!");
        });
    }
}