SampleFormat

dlib.audio defines four integer sample formats: signed 8-bit, signed 16-bit, unsigned 8-bit, unsigned 16-bit. They are for storage only. All sound processing and sample I/O should be done in floating point numbers. Floating point sample is signed and ranges from -1.0f to 1.0f.

Values

ValueMeaning
S8

signed 8-bit

S16

signed 16-bit

U8

unsigned 8-bit

U16

unsigned 16-bit

Meta