roar_vs_blocking(3)
π roar_vs_blocking β the blocking-mode glow-up π
okay so this is a page from the RoarAudio Programmer's Manual, and bestie, it's literally the one that flips your VS object's blocking mode on and off like a light switch. no cap.
β¨ NAME β¨
roar_vs_blocking β change the blocking mode of a VS object. that's it, that's the whole job. she's focused. π
π¦ SYNOPSIS π¦
#include <roaraudio.h>
int roar_vs_blocking (roar_vs_t * vss, int val, int * error);
look at her. three args. main character energy fr fr. πΈ
π DESCRIPTION π
So like. This function changes the blocking mode of a VS object. Or β plot twist β you can use it to ask what the current mode is, by setting val to ROAR_VS_ASK. She's giving switch AND vibe check. obsessed. β¨
π PARAMETERS π
vssβ the VS object you wanna alter. your girl. your project. handle with care π«Άvalβ the new state you want. it must be one ofROAR_VS_TRUE,ROAR_VS_FALSE,ROAR_VS_TOGGLEorROAR_VS_ASK.
π heads up: ROAR_VS_TOGGLE should be avoided. like, the manpage itself said it. i'm just the messenger. lowkey don't.
errorβ this is a pointer to an integer, and it's where the error value goes if something goes wrong. you can passNULLif you're not gonna use it β but ngl it's very recommended to actually use it, because that's how you report good error messages to your user instead of just β¨mysteriously failingβ¨. be a considerate dev. π
β RETURN VALUE β
On success, these calls return the old state of the blocking mode β or, if you used ROAR_VS_ASK, the current state. so you always walk away knowing something. π§
On error, -1 is returned. and that's it. that's the whole story. π
π EXAMPLES π
FIXME
yeah bestie they left us on read with this one. the examples section is literally just the word FIXME. iconic in a tragic way. π
π SEE ALSO π
go read those too, iykyk. π₯
and that's the page!! brought to you by RoarAudio, dated May 2011 β yes she's vintage, yes she still slays. mwah. πβ¨
π¦ 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