Click or drag to resize

WaveDataReader Class

Represents wave data coming from a stream.
Inheritance Hierarchy
SystemObject
  GSF.MediaWaveDataReader

Namespace: GSF.Media
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.205-beta
Syntax
public class WaveDataReader : IDisposable
View Source

The WaveDataReader type exposes the following members.

Constructors
 NameDescription
Public methodWaveDataReader(Stream) Creates a new instance of the WaveDataReader class.
Public methodWaveDataReader(WaveFormatChunk, Stream) Creates a new instance of the WaveDataReader class.
Top
Properties
 NameDescription
Public propertyFormat Gets the format of the wave data.
Public propertyWaveStream Gets the underlying stream providing wave data.
Top
Methods
 NameDescription
Public methodClose Closes the underlying stream.
Public methodDispose Releases all the resources used by the WaveDataReader object.
Protected methodDispose(Boolean) Releases the unmanaged resources used by the WaveDataReader object and optionally releases the managed resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberFromFile Creates a WaveDataReader instance created from a WAV file.
Public methodStatic memberFromStream Creates a WaveDataReader instance created from a WAV stream.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetNextSample Reads and returns the next sample from the stream.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks
This class is meant to be used when loading the entirety of a wave file into memory is not a viable option. With it, samples can be read directly from the data stream in the order that they appear.
See Also