roar_vs_ctl(3)
π roar_vs_ctl β bestie's backstage pass to the VS object π
okay so this is roar_vs_ctl(3), straight out of the RoarAudio Programmer's Manual. It's the little key that opens the private door of your VS object, and we're gonna talk about it. π
β¨ NAME β¨
roar_vs_ctl β the interface to the private internals of a VS object π«£
β¨ SYNOPSIS β¨
#include <roaraudio.h>
int roar_vs_ctl (roar_vs_t * vss, roar_vs_ctlcmd cmd, void
* argp, int * error);
β¨ DESCRIPTION β¨
So like, this function exists to let you poke at the internals of the VS object. That's the whole job. π
But hear me out β it is generally to be avoided to use this function. Like, generally. It's giving "yeah you can but should you". π
Which commands are valid? That depends on your library version, bestie. The commands are defined in a way that's suitable for #ifdef checking, so you can vibe-check them at compile time. β¨
β¨ PARAMETERS β¨
vssβ the VS object that's about to get altered. main character energy, honestly. πcmdβ says which command to run on the object. pick one, bestie.argpβ a pointer to the operant for the given command. the type depends on which command you picked, so no cap on the variety here. it must beNULLfor commands that don't take any argument. πerrorβ a pointer to anintwhere the error value gets stored if something goes wrong. you can passNULLif you're not using it, but fr fr, it is very recommended to use this error value so you can report good error messages to the user. do it for them. π₯Ί
β¨ RETURN VALUE β¨
- On success, these calls return
0. slay. β¨ - On error,
-1is returned. π
β¨ EXAMPLES β¨
FIXME
not me leaving the examples section as FIXME but like... that's literally what it says. iconic honestly. π
β¨ SEE ALSO β¨
roarvs(7), libroar(7), RoarAudio(7).
go read those too, they're part of the lore. π
kisses, bye π
this has been RoarAudio, from May 2011, signing off like the legend it is πβ β go forth and #ifdef responsibly, bestie ππ¦
π¦ where this page comes from
- ubuntu jammy: libroar-dev 1.0~beta12-4 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms