Converts a float 32-bit signed sample to a 16-bit signed sample.
Assembly: Bass.Net (in Bass.Net.dll) Version: 22.214.171.124
public static byte SampleTo16Bit( float sample )
Public Shared Function SampleTo16Bit ( sample As Single ) As Byte()
- Type: SystemSingle
The 32-bit signed sample to convert.
Return ValueType: Byte
A byte array representing the converted 16-bit signed sample (byte).
Note: values greater 1.0 or less than -1.0 are capped.