Skip to content

WavHeader Constructors ​

Initializes a new instance of the WavHeader class for the given sample rate and sample data length.

c#
public WavHeader(uint sampleRate, int dataLength);

View source

Parameters ​

NameTypeDescription
sampleRateUInt32The sample rate of the audio in Hz.
dataLengthInt32The length of the sample data in bytes.