mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +02:00
Add information on allowable ranges for sample formats.
This commit is contained in:
+10
-5
@@ -439,11 +439,16 @@ processed per second.
|
|||||||
Formats
|
Formats
|
||||||
-------
|
-------
|
||||||
Throughout miniaudio you will see references to different sample formats:
|
Throughout miniaudio you will see references to different sample formats:
|
||||||
u8 - Unsigned 8-bit integer
|
|
||||||
s16 - Signed 16-bit integer
|
Symbol | Description | Range
|
||||||
s24 - Signed 24-bit integer (tightly packed).
|
-------|----------------------------------------|---------------------------
|
||||||
s32 - Signed 32-bit integer
|
u8 | Unsigned 8-bit integer | [0, 255]
|
||||||
f32 - 32-bit floating point
|
s16 | Signed 16-bit integer | [-32768, 32767]
|
||||||
|
s24 | Signed 24-bit integer (tightly packed) | [-8388608, 8388607]
|
||||||
|
s32 | Signed 32-bit integer | [-2147483648, 2147483647]
|
||||||
|
f32 | 32-bit floating point | [-1, 1]
|
||||||
|
|
||||||
|
All formats are native-endian.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef miniaudio_h
|
#ifndef miniaudio_h
|
||||||
|
|||||||
Reference in New Issue
Block a user