Click or drag to resize

WaveFileAddSample Method

Add the sample to the wave file.

Namespace: GSF.Media
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.181-beta
Syntax
public void AddSample(
	double sample
)
View Source

Parameters

sample  Double
Sample to add to the wave file.
Remarks

Sample is applied to all channels and cast to the appropriate size. Sample should be scaled by AmplitudeScalar for integer based wave file formats to make sure sample will fit into BitsPerSample defined by wave file.

If you have samples to apply to individual channels (e.g., for a stereo format), use the AddSamples(Double) method instead.

See Also