roar_vs_pause(3)

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

πŸ’– roar_vs_pause β€” bestie edition πŸ’–

okay so this is a page from the RoarAudio Programmer's Manual, like the <pink>roar_vs_pause(3)</pink> one, and we're gonna go through it together, no cap. grab a snack. πŸ“


✨ NAME ✨

roar_vs_pause, roar_vs_mute β€” alter stream flags πŸ’…

like, that's literally it. two lil functions, one job: messing with your stream's flags.


🌸 SYNOPSIS 🌸

#include <roaraudio.h>

int     roar_vs_pause(roar_vs_t * vss, int val, int * error);

int     roar_vs_mute (roar_vs_t * vss, int val, int * error);

yeah bestie, both of them live in <roaraudio.h> and both return an int. iconic.


πŸ¦‹ DESCRIPTION πŸ¦‹

so roar_vs_pause() and roar_vs_mute() alter the stream flags PAUSE and MUTE, respectively. πŸŽ€

roar_vs_pause() handles PAUSE, roar_vs_mute() handles MUTE. they're not out here doing each other's jobs, they each have their own flag and they're thriving. periodt.


πŸ’œ PARAMETERS πŸ’œ

  • vss β€” the VS object pointing to the stream whose flags should be altered. it's giving "this is the stream we're messing with", okay? πŸ‘‘
  • val β€” specifies the new state. the value must be ROAR_VS_TRUE, ROAR_VS_FALSE, ROAR_VS_TOGGLE or ROAR_VS_ASK. those are your four options, no vibes-based guessing allowed. 🌈
  • error β€” this is a pointer to an integer used to store the error value in case of error. it can be NULL if you're not using it, but honestly? it is very recommended to use this error value so you can report good error messages to the user. bestie, don't leave your users hanging with a mystery failure. 😭

πŸ”₯ RETURN VALUE πŸ”₯

on success these calls return the old state of the stream flag β€” or the current state if ROAR_VS_ASK is used. πŸ‘€

on error, -1 is returned. that's the sad path. πŸ’€


πŸ™ˆ EXAMPLES πŸ™ˆ

FIXME

yeah. that's the example section. it's just FIXME. not me reading a manpage and getting FIXME as the whole demo 😭 but fr fr, that's exactly what the original says, so that's what you get.


⭐ SEE ALSO ⭐

go read those if you want the full lore. iykyk. 🫢


mwah πŸ’‹ that's the whole page. this came from RoarAudio, dated May 2011, and it's the <pink>roar_vs_pause(3)</pink> page β€” so go forth, toggle your flags, and slay. πŸŽ€βœ¨

πŸ“¦ where this page comes from