- add implementations

- link nAudio.core
master
Simon G 5 years ago
parent 5b52d2c4c2
commit f326b56ba8
  1. 18
      Lib.Audio/Channel.cs
  2. 17
      Lib.Audio/Controllable.cs
  3. 13
      Lib.Audio/Controls/Button.cs
  4. 13
      Lib.Audio/Controls/Fader.cs
  5. 13
      Lib.Audio/Controls/Knob.cs
  6. 14
      Lib.Audio/Device.cs
  7. 2
      Lib.Audio/Interfaces/IControllable.cs
  8. 4
      Lib.Audio/Lib.Audio.csproj

@ -0,0 +1,18 @@
// Author: Gockner, Simon
// Created: 2021-04-07
// Copyright(c) 2021 SimonG. All Rights Reserved.
using System.Collections.Generic;
using Lib.Audio.Controls.Interfaces;
using Lib.Audio.Interfaces;
namespace Lib.Audio
{
public class Channel : IChannel
{
public IFader Fader { get; }
public IKnob Knob { get; }
public List<IButton> Buttons { get; }
public IControllable Controllable { get; }
}
}

@ -0,0 +1,17 @@
// Author: Gockner, Simon
// Created: 2021-04-07
// Copyright(c) 2021 SimonG. All Rights Reserved.
using System;
using Lib.Audio.Interfaces;
namespace Lib.Audio
{
public class Controllable : IControllable
{
public void SetVolume(int volume)
{
throw new NotImplementedException();
}
}
}

@ -0,0 +1,13 @@
// Author: Gockner, Simon
// Created: 2021-04-07
// Copyright(c) 2021 SimonG. All Rights Reserved.
using Lib.Audio.Controls.Interfaces;
namespace Lib.Audio.Controls
{
public class Button : IButton
{
}
}

@ -0,0 +1,13 @@
// Author: Gockner, Simon
// Created: 2021-04-07
// Copyright(c) 2021 SimonG. All Rights Reserved.
using Lib.Audio.Controls.Interfaces;
namespace Lib.Audio.Controls
{
public class Fader : IFader
{
}
}

@ -0,0 +1,13 @@
// Author: Gockner, Simon
// Created: 2021-04-07
// Copyright(c) 2021 SimonG. All Rights Reserved.
using Lib.Audio.Controls.Interfaces;
namespace Lib.Audio.Controls
{
public class Knob : IKnob
{
}
}

@ -0,0 +1,14 @@
// Author: Gockner, Simon
// Created: 2021-04-07
// Copyright(c) 2021 SimonG. All Rights Reserved.
using System.Collections.Generic;
using Lib.Audio.Interfaces;
namespace Lib.Audio
{
public class Device : IDevice
{
public List<IChannel> Channels { get; }
}
}

@ -6,6 +6,6 @@ namespace Lib.Audio.Interfaces
{
public interface IControllable
{
void SetVolume(int volume);
}
}

@ -4,4 +4,8 @@
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NAudio.Core" Version="2.0.0" />
</ItemGroup>
</Project>

Loading…
Cancel
Save