Files
Essentials/src/PepperDash.Essentials.Core/Devices/AudioInterfaces.cs
2025-07-22 15:53:01 +00:00

40 lines
874 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;
using Crestron.SimplSharpPro;
using Crestron.SimplSharpPro.DeviceSupport;
namespace PepperDash.Essentials.Core
{
/// <summary>
/// Enumeration of AudioChangeType values
/// </summary>
public enum AudioChangeType
{
Mute, Volume
}
/// <summary>
/// Represents a AudioChangeEventArgs
/// </summary>
public class AudioChangeEventArgs
{
/// <summary>
/// Gets or sets the ChangeType
/// </summary>
public AudioChangeType ChangeType { get; private set; }
/// <summary>
/// Gets or sets the AudioDevice
/// </summary>
public IBasicVolumeControls AudioDevice { get; private set; }
public AudioChangeEventArgs(IBasicVolumeControls device, AudioChangeType changeType)
{
ChangeType = changeType;
AudioDevice = device;
}
}
}