예제 #1
0
파일: MacroElement.cs 프로젝트: tihilv/Vkm
            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;
                }
            }
예제 #2
0
 public AudioDeviceElement(AudioSessionsLayout audioSelectLayout, MediaDeviceInfo device) : base(new Identifier($"ButtonValue.{device.Id}"))
 {
     _audioSelectLayout = audioSelectLayout;
     _device            = device;
 }
예제 #3
0
 public AudioSessionsElement(AudioSessionsLayout audioSelectLayout, MediaSessionInfo session) : base(new Identifier($"ButtonValue.{session.SessionIdentifier}"))
 {
     _audioSelectLayout = audioSelectLayout;
     _session           = session;
 }