Click or drag to resize

WaveFileAddSampleBlock Method

Adds a block of samples in native format to the wave file (e.g., if BitsPerSample = 16, parameters need to be Int16 values). Note that LittleBinaryValue parameter type is implicitly castable to common native types, including floating points.

Namespace: GSF.Media
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.218-beta
Syntax
public void AddSampleBlock(
	params LittleBinaryValue[] samples
)
View Source

Parameters

samples  LittleBinaryValue
Samples to add to the wave file.
Remarks

You need to pass in one sample for each defined channel (e.g., if wave is configured for stereo you will need to pass in two parameters).

You should only add values that match the wave file's BitsPerSample (e.g., if wave file is configured for 16-bits only pass in Int16 values, casting if necessary).
See Also