Converts a float 32-bit signed sample to a 16-bit signed sample.
Assembly: Bass.Net (in Bass.Net.dll) Version: 18.104.22.168
public static byte SampleTo16Bit( float sample )
Public Shared Function SampleTo16Bit ( sample As Single ) As Byte()
public: static array<unsigned char>^ SampleTo16Bit( float sample )
static member SampleTo16Bit : sample : float32 -> 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.