Click or drag to resize

WaveFormatChunk(Int32, Int16, Int16, UInt16) Constructor

Constructs a new WaveFormatChunk using the specified audio parameters.

Namespace: GSF.Media
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.218-beta
Syntax
public WaveFormatChunk(
	int sampleRate,
	short bitsPerSample,
	short channels,
	ushort audioFormat
)
View Source

Parameters

sampleRate  Int32
Sample rate for the WaveFormatChunk.
bitsPerSample  Int16
Bits per sample for the WaveFormatChunk.
channels  Int16
Audio channels for the WaveFormatChunk.
audioFormat  UInt16
Audio format for the WaveFormatChunk.
Exceptions
ExceptionCondition
InvalidDataExceptionInvalid bit rate specified - wave file bit rates must be a multiple of 8.
See Also