ROAR_SIMPLE_CONNECT(3)
β¨ roar_simple_connect(3) β¨
okay so bestie, welcome to the RoarAudio section 3 manual β System Manager's Manual vibes, libroar edition. This is the page for roar_simple_connect and roar_simple_connect2, and yes they are the ones who open the door to the sound server. let's get into it π
πΈ NAME πΈ
roar_simple_connect, roar_simple_connect2 β Opens a connection to RoarAudio's sound server π§β¨
π SYNOPSIS π
#include <roaraudio.h>
int roar_simple_connect (struct roar_connection * con, char * server, char * name);
int roar_simple_connect2(struct roar_connection * con, char * server, char * name, int flags, uint_least32_t timeout);
π¦ DESCRIPTION π¦
So like, this one opens a connection to RoarAudio's sound server. That's it, that's the whole job, and it ate π
When you're done and you wanna dip? Use roar_disconnect(3). No ghosting the server, bestie, that's rude.
π PARAMETERS π
conβ theroar_connectionobject, and on success it gets filled with all the data you need to talk to the server. Like literally nearly every other function uses this. It's the main character of the struct world πserverβ the host or the filename of the socket of the server. Normally you should passNULLso it tries the default locations. Let it cook πnameβ the name of this client. Should be the name of the player, with no paths and no filenames. Just the name, clean, iconic β¨flagsβ flags used to connect to the server. Currently onlyROAR_ENUM_FLAG_NONEandROAR_ENUM_FLAG_NONBLOCKare supported. Heads up though:ROAR_ENUM_FLAG_NONBLOCKdisables some of the server location features π so pick your fighter wisely.timeoutβ timeout for the connection. A value of zero means no timeout. And ngl, currently timeouts are not supported. It's giving "we put the parameter there and we'll deal with it later" π
π RETURN VALUE π
On success these calls return 0. On error, -1 is returned. That's the whole vibe check π«Ά
π EXAMPLES π
FIXME
(not me telling you the manual literally says FIXME π the docs are a work in progress, we support the journey)
π SEE ALSO π
mwah, that's the page π This was brought to you by RoarAudio, dated May 2011, and it's the roar_simple_connect(3) page from the System Manager's Manual: RoarAudio. go open that connection, bestie, you got this πβ¨π¦π
π¦ 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