AuStringToFormat(3)

✨ AuStringToFormat πŸ’–

okay bestie, so this is a page from the Library Functions Manual β€” the AuStringToFormat(3) one β€” and honestly it's a lil shortie but she's important, so let's get into it πŸŽ€


🌸 Name 🌸

AuStringToFormat β€” the girl who tells you the format described by a string. like, you hand her a string, she hands you back a number. matchmaker energy fr fr πŸ’…


πŸ¦‹ Synopsis πŸ¦‹

#include <audio/audiolib.h>

int AuStringToFormat(string)
    char *string;

so yeah, you gotta pull in <audio/audiolib.h> first β€” no header, no vibes ✨ β€” and then she's right there waiting for you, returning an int and taking one lil char *string.


πŸŽ€ Arguments πŸŽ€

  • string β€” the string description of the audio data format. it's giving "describe the format in words and I'll handle it" 😌

πŸ‘‘ Description πŸ‘‘

AuStringToFormat returns the numeric value of the audio data format that string describes. that's it, that's the whole job, she ate πŸ’–

but babes, listen β€” if string is not recognized, you get -1. that's the "no ma'am, I don't know her" answer πŸ™ˆ so always vibe check your return value before you go using it as a real format, okay?

🌈 See Also 🌈

  • AuFormatToString β€” the reverse bestie, she goes the other way πŸ”
  • audiolib β€” Network Audio System C Language Interface 🫢

that's the whole page, my love, short and sweet and she slays β­πŸ’œ

this cutie came to you from audioutil, version 1.9.4, dated 1.9.4 β€” periodt, go forth and convert those strings πŸ§šπŸ’…πŸ”₯

πŸ“¦ where this page comes from