BASS.NET API for the Un4seen BASS Audio Library

UtilsSampleTo32Bit 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: 2.4.17.5
Syntax

public static float SampleTo32Bit(
	byte[] sample
)

Parameters

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.
Remarks

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

Reference