BASS.NET API for the Un4seen BASS Audio LibraryUtilsSampleTo16Bit Method (Byte)BASS.NET API for the Un4seen BASS Audio Library
Converts a byte array (in "Little Endian" notation) to a 16-bit signed sample.

Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public static short SampleTo16Bit(
	byte[] sample
)

Parameters

sample
Type: SystemByte
The byte array sample to convert (must by in "Little Endian", low byte first notation).

Return Value

Type: Int16
A short 16-bit signed value representing the converted sample.
Remarks

The length of the byte array must be at least 2 (however only the last 2 elements are evaluated).
See Also

Reference