From f326b56ba89dd7aac210aaa4dcfc0e8097269c6f Mon Sep 17 00:00:00 2001 From: Simon G Date: Wed, 7 Apr 2021 15:59:53 +0200 Subject: [PATCH] - add implementations - link nAudio.core --- Lib.Audio/Channel.cs | 18 ++++++++++++++++++ Lib.Audio/Controllable.cs | 17 +++++++++++++++++ Lib.Audio/Controls/Button.cs | 13 +++++++++++++ Lib.Audio/Controls/Fader.cs | 13 +++++++++++++ Lib.Audio/Controls/Knob.cs | 13 +++++++++++++ Lib.Audio/Device.cs | 14 ++++++++++++++ Lib.Audio/Interfaces/IControllable.cs | 2 +- Lib.Audio/Lib.Audio.csproj | 4 ++++ 8 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 Lib.Audio/Channel.cs create mode 100644 Lib.Audio/Controllable.cs create mode 100644 Lib.Audio/Controls/Button.cs create mode 100644 Lib.Audio/Controls/Fader.cs create mode 100644 Lib.Audio/Controls/Knob.cs create mode 100644 Lib.Audio/Device.cs diff --git a/Lib.Audio/Channel.cs b/Lib.Audio/Channel.cs new file mode 100644 index 0000000..11544f1 --- /dev/null +++ b/Lib.Audio/Channel.cs @@ -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 Buttons { get; } + public IControllable Controllable { get; } + } +} \ No newline at end of file diff --git a/Lib.Audio/Controllable.cs b/Lib.Audio/Controllable.cs new file mode 100644 index 0000000..83a9f62 --- /dev/null +++ b/Lib.Audio/Controllable.cs @@ -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(); + } + } +} \ No newline at end of file diff --git a/Lib.Audio/Controls/Button.cs b/Lib.Audio/Controls/Button.cs new file mode 100644 index 0000000..f635692 --- /dev/null +++ b/Lib.Audio/Controls/Button.cs @@ -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 + { + + } +} \ No newline at end of file diff --git a/Lib.Audio/Controls/Fader.cs b/Lib.Audio/Controls/Fader.cs new file mode 100644 index 0000000..b9ea12f --- /dev/null +++ b/Lib.Audio/Controls/Fader.cs @@ -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 + { + + } +} \ No newline at end of file diff --git a/Lib.Audio/Controls/Knob.cs b/Lib.Audio/Controls/Knob.cs new file mode 100644 index 0000000..433f007 --- /dev/null +++ b/Lib.Audio/Controls/Knob.cs @@ -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 + { + + } +} \ No newline at end of file diff --git a/Lib.Audio/Device.cs b/Lib.Audio/Device.cs new file mode 100644 index 0000000..73b9527 --- /dev/null +++ b/Lib.Audio/Device.cs @@ -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 Channels { get; } + } +} \ No newline at end of file diff --git a/Lib.Audio/Interfaces/IControllable.cs b/Lib.Audio/Interfaces/IControllable.cs index 91c8fce..13e6b2c 100644 --- a/Lib.Audio/Interfaces/IControllable.cs +++ b/Lib.Audio/Interfaces/IControllable.cs @@ -6,6 +6,6 @@ namespace Lib.Audio.Interfaces { public interface IControllable { - + void SetVolume(int volume); } } \ No newline at end of file diff --git a/Lib.Audio/Lib.Audio.csproj b/Lib.Audio/Lib.Audio.csproj index cbfa581..8702868 100644 --- a/Lib.Audio/Lib.Audio.csproj +++ b/Lib.Audio/Lib.Audio.csproj @@ -4,4 +4,8 @@ net5.0 + + + +