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 β€” SignedLinear16LSB puts the word "Linear" in a different spot than all the LinearSigned16LSB-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 πŸ‘€

  • AuFileFormats
  • audiolib β€” 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