roar_get_standby(3)
π¦ roar_get_standby β the manual page bestie π
okay so this is roar_get_standby(3), from the System Manager's Manual: RoarAudio section. yes it's a mouthful, no we're not renaming it, it's iconic actually. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
roar_get_standby, roar_set_standby β get and set RoarAudio's sound servers standby state π
like, literally the two functions that peek at and poke the server's nap mode. that's the whole vibe.
πΈ SYNOPSIS πΈ
#include <roaraudio.h>
int roar_get_standby(struct roar_connection * con);
int roar_set_standby(struct roar_connection * con, int state);
no cap, that's the entire incantation. include the header, call the thing, done. π
π DESCRIPTION π
so what do these babies actually do? they get or set the standby state of the server. periodt.
and listen, when the server is in standby, no audio is played. like, silence. crickets. the whole main-character moment is paused. π
also, and this is the lowkey important part β the audio device may be released depending on configuration. so it's not a guarantee, it's a "depends how your setup is configured" situation. read your config, bestie, i'm not guessing for you. π
π PARAMETERS π
conβ the connection to the server. this is your little thread of friendship to the daemon, you gotta have it. π«Άstateβ the new state. and it's gotta be one of these two:ROAR_STANDBY_ACTIVEβ if you want standby set active. i.e. nap time, audio goes night-night. π€ROAR_STANDBY_INACTIVEβ normal operating mode. i.e. wake up, we're playing sound again. π₯
β RETURN VALUE β
roar_get_standby returns ROAR_STANDBY_ACTIVE, ROAR_STANDBY_INACTIVE or -1 on error. she'll tell you which mood the server is in, or she'll just say -1 and you'll know something went sideways. π
roar_set_standby returns on success 0. on error, -1 is returned. classic zero-for-success, negative-one-for-nope. no notes. π
π EXAMPLES π
FIXME
yeah. that's it. that's the example section. the authors left us on read and honestly? we respect the honesty. πβ¨
π§ SEE ALSO π§
go read those too, iykyk. ππ
kisses and bye bye, this was the RoarAudio manual page, dated May 2011 β she's vintage, she's still serving, and she ate. π
π¦ 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