From 37f5e6d146a2a9d6c77d1c398cff082e9961b8c4 Mon Sep 17 00:00:00 2001 From: Simon G Date: Thu, 8 Apr 2021 14:58:08 +0200 Subject: [PATCH] - start implementing device --- Lib.Audio/Device.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Lib.Audio/Device.cs b/Lib.Audio/Device.cs index 73b9527..4460202 100644 --- a/Lib.Audio/Device.cs +++ b/Lib.Audio/Device.cs @@ -3,12 +3,24 @@ // 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 (int i = 0; i < 8; i++) //FixMe: remove hard coded config + Channels.Add(channelFactory.Create(_buttonConfiguration)); + } + public List Channels { get; } } } \ No newline at end of file