Class RawSourceWaveStream
WaveStream that simply passes on data from its source stream (e.g. a MemoryStream)
Implements
Inherited Members
Namespace: pdftron.PDF.Tools
Assembly: pdftron.PDF.Tools.dll
Syntax
public class RawSourceWaveStream : WaveStream, IWaveProvider
Constructors
RawSourceWaveStream(Stream, WaveFormat)
Initialises a new instance of RawSourceWaveStream
Declaration
public RawSourceWaveStream(Stream sourceStream, WaveFormat waveFormat)
Parameters
Type | Name | Description |
---|---|---|
Stream | sourceStream | The source stream containing raw audio |
WaveFormat | waveFormat | The waveformat of the audio in the source stream |
RawSourceWaveStream(Byte[], Int32, Int32, WaveFormat)
Initialises a new instance of RawSourceWaveStream
Declaration
public RawSourceWaveStream(byte[] byteStream, int offset, int count, WaveFormat waveFormat)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | byteStream | The buffer containing raw audio |
System.Int32 | offset | Offset in the source buffer to read from |
System.Int32 | count | Number of bytes to read in the buffer |
WaveFormat | waveFormat | The waveformat of the audio in the source stream |
Properties
Length
The length in bytes of this stream (if supported)
Declaration
public override long Length { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Position
The current position in this stream
Declaration
public override long Position { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
WaveFormat
The WaveFormat of this stream
Declaration
public override WaveFormat WaveFormat { get; }
Property Value
Type | Description |
---|---|
WaveFormat |
Overrides
Methods
Read(Byte[], Int32, Int32)
Reads data from the stream
Declaration
public override int Read(byte[] buffer, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
System.Int32 | offset | |
System.Int32 | count |
Returns
Type | Description |
---|---|
System.Int32 |