From d057f66b0e1c29b2b39d76986fc8e97416e937e9 Mon Sep 17 00:00:00 2001 From: Simon G Date: Fri, 9 Apr 2021 09:11:15 +0200 Subject: [PATCH] - remove midi stuff --- Lib.Audio/Device.cs | 21 --------------------- Lib.Audio/Lib.Audio.csproj | 1 - 2 files changed, 22 deletions(-) diff --git a/Lib.Audio/Device.cs b/Lib.Audio/Device.cs index bdafa57..87fa683 100644 --- a/Lib.Audio/Device.cs +++ b/Lib.Audio/Device.cs @@ -5,15 +5,12 @@ using System.Collections.Generic; using Lib.Audio.Factories; using Lib.Audio.Interfaces; -using NAudio.Midi; namespace Lib.Audio { public class Device : IDevice { private readonly IDeviceButtonConfiguration _buttonConfiguration; - private readonly MidiIn _midiIn; - private readonly MidiOut _midiOut; public Device(IChannelFactory channelFactory) { @@ -22,26 +19,8 @@ namespace Lib.Audio Channels = new List(); for (uint i = 0; i < 8; i++) //FixMe: remove hard coded config Channels.Add(channelFactory.Create(i, _buttonConfiguration)); - - var test = MidiIn.NumberOfDevices; - _midiIn = new MidiIn(0); - _midiOut = new MidiOut(0); - - _midiIn.MessageReceived += OnMidiInMessageReceived; - _midiIn.ErrorReceived += OnMidiInErrorReceived; - _midiIn.Start(); } public List Channels { get; } - - private void OnMidiInMessageReceived(object? sender, MidiInMessageEventArgs args) - { - int i = 0; - } - - private void OnMidiInErrorReceived(object? sender, MidiInMessageEventArgs args) - { - int i = 0; - } } } \ No newline at end of file diff --git a/Lib.Audio/Lib.Audio.csproj b/Lib.Audio/Lib.Audio.csproj index 202db96..ec0b4d6 100644 --- a/Lib.Audio/Lib.Audio.csproj +++ b/Lib.Audio/Lib.Audio.csproj @@ -7,7 +7,6 @@ -