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
- 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