You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
666 B
26 lines
666 B
// Author: Gockner, Simon
|
|
// Created: 2021-04-08
|
|
// Copyright(c) 2021 SimonG. All Rights Reserved.
|
|
|
|
using Lib.Audio.Controls.Buttons.Interfaces;
|
|
using Lib.Audio.Interfaces;
|
|
|
|
namespace Lib.Audio.Controls.Buttons
|
|
{
|
|
public class MuteButton : Button, IMuteButton
|
|
{
|
|
public MuteButton(int noteNumber, byte controller, int channelNumber)
|
|
: base(noteNumber, controller, channelNumber)
|
|
{
|
|
|
|
}
|
|
|
|
protected override void Handle(IControllable? controllable)
|
|
{
|
|
if (IsActive)
|
|
controllable?.Mute();
|
|
else
|
|
controllable?.UnMute();
|
|
}
|
|
}
|
|
} |