Click or drag to resize
Accord.NET (logo)

SignalSetSample Method

Sets the value of the specified sample in the Signal.

Namespace:  Accord.Audio
Assembly:  Accord.Audio (in Accord.Audio.dll) Version: 3.8.0
Syntax
public void SetSample(
	int channel,
	int position,
	float value
)
Request Example View Source

Parameters

channel
Type: SystemInt32
The channel's index of the sample to set.
position
Type: SystemInt32
The position of the sample to set.
value
Type: SystemSingle
A floating-point value ranging from -1 to 1 specifying the value to set. Conversion will be done automatically to the underlying signal sample format if supported.
See Also