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

42 lines
992 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace NAudio.Wave
{
/// <summary>
/// Event Args for WaveInStream event
/// </summary>
public class WaveInEventArgs : EventArgs
{
private byte[] buffer;
private int bytes;
/// <summary>
/// Creates new WaveInEventArgs
/// </summary>
public WaveInEventArgs(byte[] buffer, int bytes)
{
this.buffer = buffer;
this.bytes = bytes;
}
/// <summary>
/// Buffer containing recorded data. Note that it might not be completely
/// full. <seealso cref="BytesRecorded"/>
/// </summary>
public byte[] Buffer
{
get { return buffer; }
}
/// <summary>
/// The number of recorded bytes in Buffer. <seealso cref="Buffer"/>
/// </summary>
public int BytesRecorded
{
get { return bytes; }
}
}
}