Click or drag to resize
Accord.NET (logo)

SampleConverterConvert Method (Single, Int16)

Converts a array of 32-bit float samples into a array of 16-bit integer samples.

Namespace:  Accord.Audio
Assembly:  Accord.Audio (in Accord.Audio.dll) Version: 3.8.0
Syntax
public static void Convert(
	float[] from,
	short[] to
)
Request Example View Source

Parameters

from
Type: SystemSingle
The original sample.
to
Type: SystemInt16
The resulting sample.
See Also