public AudioSessionsMacroElement(AudioSessionsLayout audioSelectLayout, int macroId) : base(new Identifier($"ButtonValue.Macro.{macroId}")) { _audioSelectLayout = audioSelectLayout; _macroId = macroId; if (!_audioSelectLayout._macroData.TryGetValue(macroId, out _macroData)) { _macroData = new MacroData(); _audioSelectLayout._macroData[macroId] = _macroData; } }
public AudioDeviceElement(AudioSessionsLayout audioSelectLayout, MediaDeviceInfo device) : base(new Identifier($"ButtonValue.{device.Id}")) { _audioSelectLayout = audioSelectLayout; _device = device; }
public AudioSessionsElement(AudioSessionsLayout audioSelectLayout, MediaSessionInfo session) : base(new Identifier($"ButtonValue.{session.SessionIdentifier}")) { _audioSelectLayout = audioSelectLayout; _session = session; }