Files
UmaViewer/Assets/Scripts/Audio/NAudio/Wave/WaveStreams/ISampleNotifier.cs
T
2022-09-10 16:59:44 +08:00

41 lines
940 B
C#

using System;
// ReSharper disable once CheckNamespace
namespace NAudio.Wave
{
/// <summary>
/// An interface for WaveStreams which can report notification of individual samples
/// </summary>
public interface ISampleNotifier
{
/// <summary>
/// A sample has been detected
/// </summary>
event EventHandler<SampleEventArgs> Sample;
}
/// <summary>
/// Sample event arguments
/// </summary>
public class SampleEventArgs : EventArgs
{
/// <summary>
/// Left sample
/// </summary>
public float Left { get; set; }
/// <summary>
/// Right sample
/// </summary>
public float Right { get; set; }
/// <summary>
/// Constructor
/// </summary>
public SampleEventArgs(float left, float right)
{
Left = left;
Right = right;
}
}
}