AuSetString(3)

πŸ“¦ version 1.9.5, in fedora 43, fedora 44

πŸŽ€ NAME πŸŽ€

AuSetString β€” bestie, this one sets up your description string struct. It initializes a description string structure. That's the whole job. Slay. πŸ’–


✨ SYNOPSIS ✨

Okay so first you gotta pull in the header, no cap:

#include <audio/audiolib.h>

AuSetString(string, type, len, data)
    AuString *string; /* RETURN */
    int type;
    int len;
    char *data;

See that /* RETURN */ next to string? That's your output parameter, the thing you get back. The rest are just the vibes you feed in. 🌸


πŸ¦‹ ARGUMENTS πŸ¦‹

  • type β€” tells it what kind of string you're dealing with. Two types are defined, and only these two: AuStringLatin1 or AuStringCompoundText. Pick one, babes. πŸ’…
  • len β€” the length of the data. Just how long it is. That's it. πŸ“
  • data β€” the description data itself. The actual goods. The content. The main character. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

So like, AuSetString initializes an AuString structure. That's literally the whole thing β€” it takes your string pointer and fills it in with the type, the len, and the data you handed over. Lowkey iconic for how simple it is. 🫢


πŸ’€ NOTE πŸ’€

Heads up bestie: AuStringCompoundText might not be supported by the server. Not me warning you about this. So like, don't be shocked if the server isn't giving. 😭

audiolib β€” Network Audio System C Language Interface 🎢


And that's the tea, fr fr β€” this page comes from audiolib, version 1.9.5, and it's giving "initialize description…" energy all the way through. Go forth and set those strings, queen. πŸŒˆβœ¨πŸ‘‘

πŸ“¦ where this page comes from