AuDataFormats(3)
β¨ AuDataFormats β¨
okay bestie, welcome to AuDataFormats β this is the manpage (section 3, Library Functions Manual, iykyk) about audio data formats. yes it's a whole page about how the samples get stored. no it's not boring. it's giving foundational. π
πΈ SYNOPSIS πΈ
#include <audio/audiolib.h>
so like, right now, these are the data formats that are defined: AuFormatULAW8, AuFormatLinearUnsigned8, AuFormatLinearSigned8, AuFormatLinearSigned16MSB, AuFormatLinearUnsigned16MSB, AuFormatSignedLinear16LSB, and AuFormatLinearUnsigned16LSB. that's the whole squad. π«Ά
π DESCRIPTION π
every format gets its own little moment, so let's go one by one, no skipping, we're doing all seven:
AuFormatULAW8β this one designates a data format where the samples are stored as 8-bit ulaw values. ulaw girlies rise. β¨AuFormatLinearUnsigned8β designates a data format where the samples are stored as unsigned 8-bit values. no sign bit, just vibes.AuFormatLinearSigned8β designates a data format where the samples are stored as signed 8-bit values</signed>. yes, it can go negative. main character energy.AuFormatLinearSigned16MSBβ designates a data format where the samples are stored as signed 16-bit values, with the most significant byte first. big-endian bestie, we see you. πAuFormatLinearUnsigned16MSBβ designates a data format where the samples are stored as unsigned 16-bit values, with the most significant byte first. still MSB-first, just unsigned this time. iconic.AuFormatSignedLinear16LSBβ designates a data format where the samples are stored as signed 16-bit values, with the least significant byte first. LSB first, little-endian legend. π¦AuFormatLinearUnsigned16LSBβ designates a data format where the samples are stored as unsigned 16-bit values, with the least significant byte first. and that's the full set, periodt. π
ngl the naming is a little chaotic βSignedLinear16LSBputs the word "Linear" in a different spot than all theLinearSigned16LSB-style ones. that's literally just how it's defined, so copy it exactly, fr fr. don't get cute with it in your code. π
π SEE ALSO π
AuFileFormatsaudiolibβ Network Audio System C Language Interface
and that's the page!! tysm for reading, go make some beautiful audio π this was audiolib β misc, version 1.9.4, and yes it's AuDataFormats(3) again, we've come full circle. bye bestie! ππΈβ
π¦ where this page comes from
- debian bookworm: libaudio-dev 1.9.4-7
- debian trixie: libaudio-dev 1.9.4-9
- ubuntu jammy: libaudio-dev 1.9.4-7build1
- ubuntu noble: libaudio-dev 1.9.4-8
- ubuntu questing: libaudio-dev 1.9.4-9
- ubuntu resolute: libaudio-dev 1.9.4-9.2
- ubuntu stonking: libaudio-dev 1.9.4-9.2
- copyright 1994 Steven King
- Copyright 1993 Network Computing Devices, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms