roar_vs_pause(3)
π roar_vs_pause β bestie edition π
okay so this is a page from the RoarAudio Programmer's Manual, like the <pink>roar_vs_pause(3)</pink> one, and we're gonna go through it together, no cap. grab a snack. π
β¨ NAME β¨
roar_vs_pause, roar_vs_mute β alter stream flags π
like, that's literally it. two lil functions, one job: messing with your stream's flags.
πΈ SYNOPSIS πΈ
#include <roaraudio.h>
int roar_vs_pause(roar_vs_t * vss, int val, int * error);
int roar_vs_mute (roar_vs_t * vss, int val, int * error);
yeah bestie, both of them live in <roaraudio.h> and both return an int. iconic.
π¦ DESCRIPTION π¦
so roar_vs_pause() and roar_vs_mute() alter the stream flags PAUSE and MUTE, respectively. π
roar_vs_pause() handles PAUSE, roar_vs_mute() handles MUTE. they're not out here doing each other's jobs, they each have their own flag and they're thriving. periodt.
π PARAMETERS π
vssβ the VS object pointing to the stream whose flags should be altered. it's giving "this is the stream we're messing with", okay? πvalβ specifies the new state. the value must beROAR_VS_TRUE,ROAR_VS_FALSE,ROAR_VS_TOGGLEorROAR_VS_ASK. those are your four options, no vibes-based guessing allowed. πerrorβ this is a pointer to an integer used to store the error value in case of error. it can beNULLif you're not using it, but honestly? it is very recommended to use this error value so you can report good error messages to the user. bestie, don't leave your users hanging with a mystery failure. π
π₯ RETURN VALUE π₯
on success these calls return the old state of the stream flag β or the current state if ROAR_VS_ASK is used. π
on error, -1 is returned. that's the sad path. π
π EXAMPLES π
FIXME
yeah. that's the example section. it's just FIXME. not me reading a manpage and getting FIXME as the whole demo π but fr fr, that's exactly what the original says, so that's what you get.
β SEE ALSO β
go read those if you want the full lore. iykyk. π«Ά
mwah π that's the whole page. this came from RoarAudio, dated May 2011, and it's the <pink>roar_vs_pause(3)</pink> page β so go forth, toggle your flags, and slay. πβ¨
π¦ 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