Class RawSourceWaveStream
WaveStream that simply passes on data from its source stream (e.g. a MemoryStream)
public class RawSourceWaveStream : WaveStream, IDisposable, IAsyncDisposable, IWaveProvider
- Inheritance
-
RawSourceWaveStream
- Implements
- Inherited Members
- Extension Methods
Constructors
RawSourceWaveStream(byte[], int, int, WaveFormat)
Initialises a new instance of RawSourceWaveStream
public RawSourceWaveStream(byte[] byteStream, int offset, int count, WaveFormat waveFormat)
Parameters
byteStream
byte[]The buffer containing raw audio
offset
intOffset in the source buffer to read from
count
intNumber of bytes to read in the buffer
waveFormat
WaveFormatThe waveformat of the audio in the source stream
RawSourceWaveStream(Stream, WaveFormat)
Initialises a new instance of RawSourceWaveStream
public RawSourceWaveStream(Stream sourceStream, WaveFormat waveFormat)
Parameters
sourceStream
StreamThe source stream containing raw audio
waveFormat
WaveFormatThe waveformat of the audio in the source stream
Properties
Length
The length in bytes of this stream (if supported)
public override long Length { get; }
Property Value
Position
The current position in this stream
public override long Position { get; set; }
Property Value
WaveFormat
The WaveFormat of this stream
public override WaveFormat WaveFormat { get; }
Property Value
Methods
Read(byte[], int, int)
Reads data from the stream
public override int Read(byte[] buffer, int offset, int count)