roar_get_vol(3)
π roar_get_vol β get/set mixer levels, bestie edition π
okay so this is a page from the System Manager's Manual: RoarAudio (that's the manual name, she's fancy like that π), and today we're learning about roar_get_vol, roar_set_vol, and roar_set_vol2 β aka the trio that sets mixer levels and RoarAudio stream levels. no cap, they're literally the volume girlies π
β¨ NAME β¨
roar_get_vol, roar_set_vol, roar_set_vol2 β set mixer levels or RoarAudio streams ποΈ
πΈ SYNOPSIS πΈ
#include <roaraudio.h>
int roar_set_vol(struct roar_connection * con, int id, struct
roar_mixer_settings * mixer, int channels);
int roar_set_vol2 (struct roar_connection * con, int id, struct
roar_mixer_settings * mixer, int channels, int mode);
int roar_get_vol(struct roar_connection * con, int id, struct
roar_mixer_settings * mixer, int * channels);
π¦ DESCRIPTION π¦
so basically this call gets or sets the mixing levels for a stream. like, it's the volume knob of the whole situation π₯
important bestie alert π¨roar_set_vol()is marked obsolete and will be removed soon β useroar_set_vol2()instead, fr fr. don't get attached to the old one, she's leaving π
π PARAMETERS π
conβ the connection to the roar audio server. your little phone line to the server, essentially πidβ the ID of the stream you wanna change. gotta know which stream you're messing with πmixerβ the mixer state for the stream. this is the actual data packet of volume vibes β¨channelsβ the number of channels to set mixer data for, or the number of channels mixer data is returned for (depends on which direction you're going, iykyk) π§modeβ the mode of operating. currently the following modes are supported:ROAR_SET_VOL_ALL,ROAR_SET_VOL_MS,ROAR_SET_VOL_UNMAPPEDπ
π RETURN VALUE π
- on success, these calls return
0β slay, we ate β - on error,
-1is returned β not the vibe, something went wrong π
π EXAMPLES π
FIXME
(yeah, the examples section literally just says FIXME. iconic of the devs, honestly π no example yet, bestie, the docs are still cooking π§)
π«Ά SEE ALSO π«Ά
and that's the whole page, bestie π this one came from RoarAudio, dated May 2011 β a true vintage queen π go forth and adjust those mixer levels responsibly πΈπβ¨
π¦ 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