roar_stream_new(3)
π roar_stream_new β bestie edition π
okay so this is a page from the RoarAudio System Manager's Manual, and today we're learning about roar_stream_new(3). pull up a chair, grab a boba, we're building streams β¨
πΈ NAME πΈ
roar_stream_new β creates a new stream object π
like. it makes a stream. a whole new one. iconic behaviour honestly.
π¦ SYNOPSIS π¦
#include <roaraudio.h>
int roar_stream_new(struct roar_stream * s, unsigned int rate, unsigned
int channels, unsigned int bits, unsigned int codec);
β¨ DESCRIPTION β¨
This call create a new stream object.
that's it. that's the whole vibe. you call it, a stream object appears, main character energy fr fr π
π PARAMETERS π
sβ a pointer to the new stream object. this is where your shiny new stream gets written to, bestie π«Ά- the other params β
rate,channels,bits, andcodecβ for the full rundown on what those mean, go readroar_simple_play(3). not gonna lie, that's where the lore lives π
π RETURN VALUE π
On success these calls return 0. π slay.
On error, -1 is returned. π not slay. check your inputs.
π§ EXAMPLES π§
FIXME
(yeah. that's literally what it says. the examples section is a work in progress, we're all just doing our best out here π)
π SEE ALSO π
roar_simple_play(3)β the one with the actual parameter lore, go read itlibroar(7)β the libraryRoarAudio(7)β the whole ecosystem
lowkey a tiny page but every byte of it is important, no cap π
mwah π that's the whole page. this was written by the fine folks at RoarAudio, back in May 2011 β ancient times, before any of us were even online. thanks for reading bestie, go make some streams πβ¨π
π¦ 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