namespace NAudio.Wave
{
///
/// IWaveBuffer interface use to store wave datas.
/// Data can be manipulated with arrays (,,
/// , ) that are pointing to the same memory buffer.
/// This is a requirement for all subclasses.
///
/// Use the associated Count property based on the type of buffer to get the number of data in the
/// buffer.
///
/// for the standard implementation using C# unions.
///
public interface IWaveBuffer
{
///
/// Gets the byte buffer.
///
/// The byte buffer.
byte[] ByteBuffer { get; }
///
/// Gets the float buffer.
///
/// The float buffer.
float[] FloatBuffer { get; }
///
/// Gets the short buffer.
///
/// The short buffer.
short[] ShortBuffer { get; }
///
/// Gets the int buffer.
///
/// The int buffer.
int[] IntBuffer { get; }
///
/// Gets the max size in bytes of the byte buffer..
///
/// Maximum number of bytes in the buffer.
int MaxSize { get; }
///
/// Gets the byte buffer count.
///
/// The byte buffer count.
int ByteBufferCount { get; }
///
/// Gets the float buffer count.
///
/// The float buffer count.
int FloatBufferCount { get;}
///
/// Gets the short buffer count.
///
/// The short buffer count.
int ShortBufferCount { get; }
///
/// Gets the int buffer count.
///
/// The int buffer count.
int IntBufferCount { get; }
}
}