- start implementing device

master
Simon G 5 years ago
parent 610334404d
commit 37f5e6d146
  1. 12
      Lib.Audio/Device.cs

@ -3,12 +3,24 @@
// Copyright(c) 2021 SimonG. All Rights Reserved. // Copyright(c) 2021 SimonG. All Rights Reserved.
using System.Collections.Generic; using System.Collections.Generic;
using Lib.Audio.Factories;
using Lib.Audio.Interfaces; using Lib.Audio.Interfaces;
namespace Lib.Audio namespace Lib.Audio
{ {
public class Device : IDevice 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<IChannel>();
for (int i = 0; i < 8; i++) //FixMe: remove hard coded config
Channels.Add(channelFactory.Create(_buttonConfiguration));
}
public List<IChannel> Channels { get; } public List<IChannel> Channels { get; }
} }
} }
Loading…
Cancel
Save