Click or drag to resize

WaveFileAddSamples Method

Adds a series of samples, one per channel, to the wave file.

Namespace: GSF.Media
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.207-beta
Syntax
public void AddSamples(
	params double[] samples
)
View Source

Parameters

samples  Double
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).

Each sample will be cast to the appropriate size. Samples should be scaled by AmplitudeScalar for integer based wave file formats to make sure samples will fit into BitsPerSample defined by wave file.
See Also