BASS.NET API for the Un4seen BASS Audio LibraryUtilsSampleTo16Bit Method (Byte)BASS.NET API for the Un4seen BASS Audio Library
Converts an 8-bit unsigned sample to a 16-bit signed sample.

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

public static byte[] SampleTo16Bit(
	byte sample
)

Parameters

sample
Type: SystemByte
The 8-bit unsigned sample to convert.

Return Value

Type: Byte
A byte array representing the converted 16-bit signed sample (byte[2]).
Remarks

The byte order is represented in the "Little Endian" format as saved on Intel platforms (meaning lower byte first, the LSB is stored at index 0). If you need a "Big Endian" format just traverse the array from the back.
See Also

Reference