roar_server_oinfo2(3)
π roar_server_oinfo2 β the manual page, but make it make sense π
okay so bestie, we're in the System Manager's Manual section of the RoarAudio docs, and today's main character is roar_server_oinfo2(3). yes it's a C library function, yes it's lowkey iconic, let's get into it π«Ά
β¨ NAME β¨
roar_server_oinfo, roar_server_oinfo2 β gets info on the output stream of RoarAudio's sound server π
π SYNOPSIS π
#include <roaraudio.h>
int roar_server_oinfo(struct roar_connection * con, struct roar_stream * s);
int roar_server_oinfo2(struct roar_connection * con, struct roar_stream * s, int dir);
like, two functions, one header, very demure, very mindful π
π¦ DESCRIPTION π¦
So what do these actually do, bestie? They grab info about the default mixer stream for whatever stream direction you hand them. Why do you care? Because you can use that to get the optimal parameters for all your operations β meaning the server doesn't have to go and resample everything. no resampling, no extra work, it's giving efficiency fr fr β¨
β οΈ heads up babes:roar_server_oinfo()is marked as obsolete and will be removed soon. like, it's on the way out. useroar_server_oinfo2()if you know what's good for you π
πΈ PARAMETERS πΈ
conβ the connection to the server. your little link to the mothership π°οΈsβ a stream object that's gonna get filled up with all the information about the output stream. it's the canvas, the info is the paint π¨dirβ the stream direction you want to query mixer data for. which way are we going, bestie? π§
π RETURN VALUE π
- On success: these calls return
0π slay - On error:
-1is returned π not slay
π EXAMPLES π
FIXME
and yes that's literally what the original says. the examples section is a work in progress, the author said "later" and meant it π
π SEE ALSO π
go read those too, they're the supporting cast π«Ά
π cute sign-off π
this whole thing lives in the RoarAudio manual, and it's been sitting pretty since May 2011 β so yeah, vintage. now go forth and query your mixer data, bestie β the server is gonna love you for not making it resample ππβ¨
π¦ 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