- start implementing fader

master
Simon G 5 years ago
parent df05244c85
commit 42c7ac457a
  1. 13
      Lib.Audio/Controls/Fader.cs
  2. 4
      Lib.Audio/Controls/Interfaces/IFader.cs

@ -2,12 +2,25 @@
// Created: 2021-04-07
// Copyright(c) 2021 SimonG. All Rights Reserved.
using System;
using Lib.Audio.Controls.Interfaces;
namespace Lib.Audio.Controls
{
public class Fader : IFader
{
private float _position;
public float Position
{
get => _position;
private set
{
_position = value;
PositionChanged?.Invoke(this, _position);
}
}
public event EventHandler<float> PositionChanged;
}
}

@ -2,10 +2,14 @@
// Created: 2021-04-07
// Copyright(c) 2021 SimonG. All Rights Reserved.
using System;
namespace Lib.Audio.Controls.Interfaces
{
public interface IFader
{
float Position { get; } //TODO: float or double?
event EventHandler<float> PositionChanged;
}
}
Loading…
Cancel
Save