BASS.NET API for the Un4seen BASS Audio LibraryUtilsSampleTo8Bit Method (Single)BASS.NET API for the Un4seen BASS Audio Library
Converts a float 32-bit signed sample to an 8-bit unsigned sample.

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

public static byte[] SampleTo8Bit(
	float sample
)

Parameters

sample
Type: SystemSingle
The 32-bit signed sample to convert.

Return Value

Type: Byte
A byte array representing the converted 8-bit unsigned sample (byte[1]).
Remarks

Note: values greater 1.0 or less than -1.0 are capped.
See Also

Reference