Interface IWaveBuffer
IWaveBuffer interface use to store wave datas. Data can be manipulated with arrays (ByteBuffer,FloatBuffer, ShortBuffer,IntBuffer ) 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.
WaveBuffer for the standard implementation using C# unions.
public interface IWaveBuffer
Properties
ByteBuffer
Gets the byte buffer.
byte[] ByteBuffer { get; }
Property Value
- byte[]
The byte buffer.
ByteBufferCount
Gets the byte buffer count.
int ByteBufferCount { get; }
Property Value
- int
The byte buffer count.
FloatBuffer
Gets the float buffer.
float[] FloatBuffer { get; }
Property Value
- float[]
The float buffer.
FloatBufferCount
Gets the float buffer count.
int FloatBufferCount { get; }
Property Value
- int
The float buffer count.
IntBuffer
Gets the int buffer.
int[] IntBuffer { get; }
Property Value
- int[]
The int buffer.
IntBufferCount
Gets the int buffer count.
int IntBufferCount { get; }
Property Value
- int
The int buffer count.
MaxSize
Gets the max size in bytes of the byte buffer..
int MaxSize { get; }
Property Value
- int
Maximum number of bytes in the buffer.
ShortBuffer
Gets the short buffer.
short[] ShortBuffer { get; }
Property Value
- short[]
The short buffer.
ShortBufferCount
Gets the short buffer count.
int ShortBufferCount { get; }
Property Value
- int
The short buffer count.