Skip to main content

MicrophoneEnumSettingAccess

A class in Root.Township, Alta.Utilities.

Client: settings option that lists Vivox input devices and switches the microphone.

Constructors​

MemberWhat it is
MicrophoneEnumSettingAccess()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

3 private and internal fields
MemberWhat it is
private readonly Dictionary<string, IAudioDevice> audioDevicesInput devices by name, from the last refresh.
private readonly Dictionary<IAudioDevice, string> devicesNamesNames by input device, from the last refresh.
private static Logger loggerClass logger.

Methods​

MemberWhat it is
override async Task<string[]> GetPossibleValue()Refreshes the Vivox device list and returns the input device names.
override string GetValue()Name of the active (or else effective) Vivox input device. Empty, with an error logged, if neither is known.
override void SetValue(string value)Sets the Vivox input device by name. Logs an error if it is not in the last refreshed list.