roar_vs_meta(3)
π roar_vs_meta β it's giving "update the meta data for a stream" β¨
okay bestie, so this page is from the RoarAudio Programmer's Manual, and it's literally all about one lil function that lets you tell your stream who it is. no cap.
π NAME π
roar_vs_meta β update meta data for a stream. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <roaraudio.h>
int roar_vs_meta (roar_vs_t * vss, struct roar_keyval * kv,
size_t len, int * error);
copy that exactly, don't get creative, i'm watching π
π¦ DESCRIPTION π¦
So. This function updates the meta data of the stream. Think of it like changing your profile pic but for audio β title, artist, all that cute stuff. π΅
The important bit: this should be done before any read or write operation, and it can be used at any time to update the meta data. So like, you can set it up early, and also come back and change it whenever. main character energy, honestly.
β¨ PARAMETERS β¨
vssβ the VS object you're updating. the one getting the glow-up. πkvβ an array of meta data elements. it's giving a lil list of key-value cuties.lenβ the length of the arraykv. yes bestie, you gotta tell it how many.errorβ this is a pointer to an integer used to store the error value in case of error. it can beNULLif you're not using it, but it is very recommended to use this error value to report good error messages to the user. fr fr, don't skip this one, your users will thank you. π
π₯ RETURN VALUE π₯
- On success these calls return
0. slay. β¨ - On error,
-1is returned. π
π EXAMPLES π
look at this gorgeous code, no notes:
struct roar_keyval kv[2] = {
{.key = "TITLE", .value = "Some title"},
{.key = "ARTIST", .value = "Some artist"}
};
ret = roar_vs_meta(vss, &kv, 2, &err);
two keyvals, a title, an artist, and a dream. ate. π
π«Ά SEE ALSO π«Ά
go read those next, iykyk π§
mwah, that's the whole page. This lil slice of documentation came out of the RoarAudio corner of the world back in May 2011, and the man page answers to roar_vs_meta(3). bye bestie, go update some meta data πβ¨π
π¦ 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