Click or drag to resize

WaveFormatChunk Class

Represents the format chunk in a WAVE media format file.
Inheritance Hierarchy
SystemObject
  GSF.MediaRiffChunk
    GSF.MediaWaveFormatChunk

Namespace: GSF.Media
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.218-beta
Syntax
public class WaveFormatChunk : RiffChunk, 
	ISupportBinaryImage
View Source

The WaveFormatChunk type exposes the following members.

Constructors
 NameDescription
Public methodWaveFormatChunk(RiffChunk, Stream)Reads a new WaveFormatChunk from the specified stream.
Public methodWaveFormatChunk(Int32, Int16, Int16, UInt16) Constructs a new WaveFormatChunk using the specified audio parameters.
Top
Properties
 NameDescription
Public propertyAudioFormat Gets or sets audio format used by the WaveFile.
Public propertyBinaryLength Gets the length of WaveFormatChunk.
(Overrides RiffChunkBinaryLength)
Public propertyBitsPerSample Gets or sets number of bits-per-sample in the WaveFile.
Public propertyBlockAlignment Gets or sets the block size of a complete sample of data (i.e., samples for all channels of data at one instant in time).
Public propertyByteRate Gets or sets the byte rate used for buffer estimation.
Public propertyChannels Gets or sets number of audio channels in the WaveFile.
Public propertyChunkSizeSize of WaveFormatChunk.
(Overrides RiffChunkChunkSize)
Public propertyExtraParameters Gets or sets any extra parameters defined in the format header of the WaveFile.
Public propertyExtraParametersSize Gets the size of the ExtraParameters buffer, if defined.
Public propertySampleRate Gets or sets the sample rate (i.e., the number of samples per second) defined in the WaveFile.
Public propertyTypeIDFour character text identifer for RIFF chunk.
(Inherited from RiffChunk)
Top
Methods
 NameDescription
Public methodCastSample Casts sample value to its equivalent native type based on defined BitsPerSample and AudioFormat.
Public methodClone Creates a copy of the WaveFormatChunk.
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 methodGenerateBinaryImage Generates a binary representation of this WaveFormatChunk and copies it into the given buffer.
(Overrides RiffChunkGenerateBinaryImage(Byte, Int32))
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetSampleTypeCode Determines sample data type code based on defined BitsPerSample and AudioFormat.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodParseBinaryImage Parses WaveFormatChunk object by parsing the specified buffer containing a binary image.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberRiffTypeID RIFF type ID for wave format chunk (i.e., "fmt ").
Top
Extension Methods
 NameDescription
Public Extension MethodBinaryImage Returns a binary image of an object that implements ISupportBinaryImage.
(Defined by ISupportBinaryImageExtensions)
Public Extension MethodCopyBinaryImageToStream Copies binary image of object that implements ISupportBinaryImage to a Stream.
(Defined by ISupportBinaryImageExtensions)
Public Extension MethodCopyImage This is a common optimized block copy function for any kind of data.
(Defined by Common)
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)
Public Extension MethodParseBinaryImageFromStream Parses binary image of object that implements ISupportBinaryImage from a Stream.
(Defined by ISupportBinaryImageExtensions)
Top
See Also