roarvs(7)
π¦ roarvs(7) β the very simple API, bestie edition
okay so you found the page for roarvs, section 7 of the System Manager's Manual: RoarAuido (yes that's how it's spelled up there, we don't talk about it π). This is the one about the RoarAudio sound library, aka libroar. Sit down, get comfy, we're doing this. β¨
πΈ NAME
libroarβ the RoarAudio sound library itself, the whole entire moment πroarvsβ the RoarAudio very simple API. lowercase, unbothered, iconic.
π SYNOPSIS
like, here's literally all you need to summon it:
#include <roaraudio.h>
roar_vs_t * vss;
that's it. that's the whole vibe check. a header and a pointer. slay. π
π DESCRIPTION
okay so the VS API β and "VS" stands for Very Simple, which is so real of it β is a high level abstraction layer. its whole job? letting genuinely tiny, simple little programs use RoarAudio without making you cry. π
the tea is: this API was designed to help people easily upgrade their existing artsc and pulse-simple code over to RoarAudio. like a glow-up but for your source files. π¦
and yeah, it's equivalently simple to those APIs... but it's much more powerful than the ones from aRtsc or PulseAudio. not me saying that, the page says that. no cap. π₯
also!! the VS API has a mode to play back (and record) files easily. and because that mode uses VIO/DSTR, it can handle streams as well. streams!! she does it all. main character energy fr fr. π
π§ TUTORIALS
want the step-by-step? tutorials live in roartut(7). go read them, bestie, they're right there. π
β IMPORTANT FUNCTIONS
there are several important functions. here's a small list of the most important ones β think of it as the group chat roster. π
π Error handling
roar_vs_strerr(3)β when things go wrong (and they will, lowkey) this is where you find out what happened.
π Opening
roar_vs_new(3)β open a new connection.roar_vs_new_simple(3)β the simple version of opening. very on brand.roar_vs_new_playback(3)β open for playback.roar_vs_new_from_file(3)β open from a file.
π Closing
roar_vs_close(3)β closing time. you don't have to go home but you can't stay here.
π Reading and writing
roar_vs_read(3)β read stuff.roar_vs_write(3)β write stuff.
π¦ Non-Blocking and Asyncron IO
roar_vs_blocking(3)β blocking control.roar_vio_select(3)β the select situation.
π₯ Volume and Flags
roar_vs_pause(3)β pause it.roar_vs_mute(3)β mute it.roar_vs_volume_mono(3)β mono volume.roar_vs_volume_stereo(3)β stereo volume.roar_vs_volume_get(3)β get the volume.
π Meta data
roar_vs_meta(3)β meta data.roar_vs_role(3)β roles.
πΈ File mode
π Buffered mode
(yes roar_vs_iterate(3) and roar_vs_run(3) show up in both file mode and buffered mode. she contains multitudes. π«Ά)
π BUGS
A lot...
that's it. that's the entire section. no further notes. extremely real of them. π
π SEE ALSO
ngl this whole thing is giving "small API, big feelings". go forth and make sound, bestie. π§β¨
and that's a wrap!! this page came to you from RoarAudio, dated June 2011, and it lives at roarvs(7). mwah. πππ¦
π¦ 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