roarvs(7)

πŸ“¦ version 1.0~beta12, in ubuntu jammy

πŸ¦‹ 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

🌈 Closing

  • roar_vs_close(3) β€” closing time. you don't have to go home but you can't stay here.

πŸ’… Reading and writing

πŸ¦‹ Non-Blocking and Asyncron IO

πŸ”₯ Volume and Flags

πŸ‘‘ Meta data

🌸 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