Click or drag to resize

WaveFile(Int32, Int16, Int16, UInt16) Constructor

Creates a new empty in-memory wave file in specified audio format.

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

Parameters

sampleRate  Int32
Desired sample rate (e.g., 44100).
bitsPerSample  Int16
Desired bits-per-sample (e.g., 16).
channels  Int16
Desired data channels (e.g., 2 for stereo).
audioFormat  UInt16
Desired audio format (e.g., 0x1 for Pulse Code Modulation).
Remarks
Consumer will need to apply appropriate data compression for non-PCM data formats.
See Also