MicrophoneEnumSettingAccess
A class in Root.Township, Alta.Utilities.
Client: settings option that lists Vivox input devices and switches the microphone.
Constructors
| Member | What it is |
|---|
MicrophoneEnumSettingAccess() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private readonly Dictionary<string, IAudioDevice> audioDevices | Input devices by name, from the last refresh. |
private readonly Dictionary<IAudioDevice, string> devicesNames | Names by input device, from the last refresh. |
private static Logger logger | Class logger. |
Methods
| Member | What 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. |