roar_stream_new(3)

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

πŸ’– 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, and codec β€” for the full rundown on what those mean, go read roar_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 πŸ’œ


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