// Author: Gockner, Simon // Created: 2021-04-07 // Copyright(c) 2021 SimonG. All Rights Reserved. using System.Collections.Generic; using Lib.Audio.Factories; using Lib.Audio.Interfaces; namespace Lib.Audio { public class Device : IDevice { private readonly IDeviceButtonConfiguration _buttonConfiguration; public Device(IChannelFactory channelFactory) { _buttonConfiguration = new DeviceButtonConfiguration {HasMuteButton = true, NumberOfButtons = 4}; //FixMe: remove hard coded config Channels = new List(); for (uint i = 0; i < 8; i++) //FixMe: remove hard coded config Channels.Add(channelFactory.Create(i, _buttonConfiguration)); } public List Channels { get; } } }