roar_exit(3)
π roar_exit(3) β the RoarAudio girlies' guide to telling the sound server to go night-night π
okay so bestie, welcome to the System Manager's Manual: RoarAudio section, page roar_exit(3). this is a lil two-for-one deal: roar_exit and roar_terminate. both of them are about letting the server dip. let's get into it π«Ά
β¨ NAME β¨
roar_exitβ let RoarAudio's sound server quit πroar_terminateβ let RoarAudio's sound server quit as soon as all clients quit π¦
πΈ SYNOPSIS πΈ
#include <roaraudio.h>
int roar_exit(struct roar_connection * con);
int roar_terminate(struct roar_connection * con, int terminate);
π DESCRIPTION π
so basically you're asking the sound server to quit. that's the whole vibe. main character move tbh π
roar_exit() lets the server quit without waiting for any clients. no thoughts, head empty, just gone. all streams and client connections will be closed cleanly tho β no messy exits, she's classy β¨
roar_terminate() is the patient one. it will let the server quit as soon as all clients disconnects and all input streams ended. the listening socket will be closed. this is useful in case of restarting roard. literally perfect for when you're doing a lil glow-up restart and don't wanna drop anybody mid-stream π
π PARAMETERS π
conβ an open control connection to the server. it's the lil phone line to your server bestie πterminateβ wait for all clients to disconnect and all streams to EOF in case of1. in case of0,roar_terminate()is equal toroar_exit(). so like,1= wait for everyone,0= girl bye π
β RETURN VALUE β
on success these calls return 0. on error, -1 is returned. simple as that, no cap π―
π NOTES π
okay important bestie!! even when the call was successful you have to use roar_disconnect(3) to disconnect from the server. the exit call is not the disconnect call, they're two different things, don't skip the second one or it's giving unfinished business π
π₯ EXAMPLES π₯
FIXME
(yeah bestie, the examples section literally just says FIXME. we're all waiting on that one π)
π¦ SEE ALSO π¦
that's the whole page, you ate it up π β¨
this lil slice of RoarAudio manual history is dated May 2011, and it comes to you from the RoarAudio source, living under the System Manager's Manual: RoarAudio umbrella. mwah, take care of her π«Άπ
π¦ 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