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

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

public static float SampleTo32Bit(
	byte[] sample


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

Return Value

Type: Single
A float 32-bit signed value representing the converted sample.

The length of the byte array determines the value to convert. A length of 1 will be treated as an 8-bit sample, a length of 2 will be treated as a 16-bit sample, a length of 3 will be treated as a 24-bit sample etc.
See Also