AuDefineToFormat(3)

✨ AuDefineToFormat ✨

okay so bestie, welcome to AuDefineToFormat(3) πŸ’– this one lives in the Library Functions Manual and it is literally the cutest tiny little lookup function β€” it takes a C-preprocessor define and hands you back the format it stands for. that's it. that's the whole job. she's simple, she's reliable, she ate πŸ’…


🌸 NAME 🌸

AuDefineToFormat β€” return the format specified by a C-preprocessor define.

like. that's her whole personality. no cap. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <audio/audiolib.h>

int AuDefineToFormat(define)
    char *define;

yes she's got old-school K&R vibes and we respect the heritage, periodt πŸ‘‘


πŸ“ ARGUMENTS πŸ“

  • define β€” specifies the C-preprocessor define. that's the one and only thing you're handing her, bestie. just the define. give her the define and she'll do the rest 🫢

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea β˜• AuDefineToFormat returns the format specified by define β€” or, and listen carefully because this is the important part, -1 if define isn't valid. 😭

so like: valid define in, format out ✨. invalid define in, you get a -1 and honestly that's your sign that something's not giving. it's not a crash, it's not a mystery, it's just -1. lowkey iconic of her to be that straightforward fr fr.


🌈 SEE ALSO 🌈

  • AuFormatToDefine β€” the reverse baddie, the one that goes the other direction. yin to her yang, iykyk πŸ”₯
  • audiolib β€” Network Audio System C Language Interface. the whole squad. the main character energy πŸ’–

ngl if you're out here passing an invalid define and then acting shocked when you get -1... that's on you bestie πŸ™ˆ the docs told you. she told you. everybody told you.

kisses, this was page AuDefineToFormat(3) from the audioutil era, version 1.9.4 πŸ’Œ go forth and format responsibly, queen πŸ‘‘πŸ’…βœ¨

πŸ“¦ where this page comes from