AuFormatToString(3)

✨ AuFormatToString(3) β€” from the Library Functions Manual ✨

okay bestie, pull up a chair because we're diving into AuFormatToString(3) from the audiolib crew πŸŽ€


πŸ’– Name πŸ’–

AuFormatToString β€” literally just get the name of a format. that's the whole job. no cap. πŸ¦‹


🌸 Synopsis 🌸

#include <audio/audiolib.h>

char *AuFormatToString(format)
    unsigned int format;

✨ Arguments ✨

  • format β€” this is the audio data format you're asking about, an unsigned int. rn the formats that are actually defined are: AuFormatULAW8, AuFormatLinearUnsigned8, AuFormatLinearSigned8, AuFormatLinearSigned16MSB, AuFormatLinearUnsigned16MSB, AuFormatLinearSigned16LSB, and AuFormatLinearUnsigned16LSB. that's the whole roster, periodt πŸ‘‘

🫢 Description 🫢

so like, AuFormatToString hands you back the name of format β€” or it says "Unknown" if format isn't one it recognizes. simple as that. it's giving reliable bestie energy πŸ’…

not me side-eyeing a format it doesn't know and getting "Unknown" back 😭 that's the vibe check and you failed it.

🌈 See Also 🌈

  • AuStringToFormat β€” the reverse direction, the mirror twin πŸͺž
  • audiolib β€” Network Audio System C Language Interface

and that's the whole page, bestie πŸ§šπŸ’œ this one came from audioutil version 1.9.4, so go forth and format responsibly 🌟

πŸ“¦ where this page comes from