Versions Compared

Key

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

...

Code Block
languagec#
public class AudioSelectionMenu : MonoBehaviour
{
    private void Start()
    {
        CavrnusFunctionLibrary.AwaitAnySpaceConnection(FetchAudioDevicesDisplayAudioDevices);
    }

    private void FetchAudioDevicesDisplayAudioDevices(CavrnusSpaceConnection spaceConnection)
    {
        CavrnusFunctionLibrary.FetchAudioInputs(devices => {
            foreach (var device in devices)
                Debug.Log($"{device.Name} found!");
        });
    }
}