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