muroar_close(3)
π muroar_close(3) β the muRoar Programmer's Manual, bestie edition π
okay so you're here for muroar_close, and honestly? iconic of you. this is the little function from the muRoar Programmer's Manual that hangs up on the RoarAudio sound server politely instead of just ghosting it. π
β¨ NAME β¨
muroar_close β disconnect a stream from the RoarAudio sound server π¦
β¨ SYNOPSIS β¨
#include <muroar.h>
int muroar_close(muroar_t fh);
β¨ DESCRIPTION β¨
so basically this function disconnects a data connection (a stream, bestie) from the sound server, and it does it in a clean way. no drama, no messy exit, just a graceful lil goodbye. πΈ
the socket is closed by this function. that's the whole point. you do NOT need an extra close(2) on top of it β the way that would be doing the most for absolutely no reason π
β οΈ ok but this part is important, like actually important: open control connections that were not created bymuroar_stream(3)must NOT be closed using this function. nope. not allowed. they must be closed usingmuroar_quit(3)instead. use the right function for the right connection or it's giving chaos, fr fr π
β¨ RETURN VALUE β¨
- on success this call returns
0β slay β¨ - on error,
-1is returned β not slay π
β¨ HISTORY β¨
this function first appeared in muRoar version 0.1beta0. so it's been here since basically day one. a true original. a founding mother. π
β¨ SEE ALSO β¨
and that's the whole page, bestie β go forth and close your streams correctly π«Ά
this was muRoar, from April 2012, muRoar era forever π lowkey a classic, highkey timeless. mwah. πβ¨
π¦ where this page comes from
- ubuntu jammy: libmuroar-dev 0.1.13-7 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms