AuFormatToDefine(3)

✨ AuFormatToDefine(3) ✨

ok so bestie, welcome to the Library Functions Manual section of the audioutil docs πŸ’– this one's a little one-page wonder, a tiny icon, a single-function baddie. it's giving "short but essential." πŸŽ€


🌸 NAME 🌸

AuFormatToDefine β€” the way to get the C-preprocess define for a format. yep. that's the whole job. no cap. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <audio/audiolib.h>

char *AuFormatToDefine(format)
    unsigned int format;

ok like look at her, so demure, so mindful 🫢


πŸ“ ARGUMENTS πŸ“

  • format β€” this is the audio data format you're asking about. an audio data format. that's it. she's specifying an audio data format, bestie, that's her whole arc.

πŸ’œ DESCRIPTION πŸ’œ

AuFormatToDefine returns the C-preprocessor define for format β€” or it returns "unknown" if format isn't valid. 😭

that's it. that's the function. it looks at your format, hands you back the define string, and if you gave it something fake it just goes "unknown" at you. no drama, no crash, no yelling. just "unknown." lowkey respectful of your feelings ngl. πŸ™ˆ

bestie reminder: "unknown" comes back as an actual string, so don't be out here treating a nonsense format like it's a valid one. check before you vibe. ⭐

🌈 SEE ALSO 🌈

  • AuFormatToString β€” the sibling. the other format-to-string girlie. go say hi πŸ‘‘
  • audiolib β€” Network Audio System C Language Interface. the whole friend group. the main character. πŸ’–

and that's the page, periodt. 🌸 this was served up from audioutil, version 1.9.4 β€” mwah, sending u the good vibes, go write some audio code bestie πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from