ROAR_STREAM_ADD_DATA(3)
π roar_str...add_data(3) π
okay bestie, so this is a page from the System Manager's Manual: RoarAudio and we're literally about to learn how to yeet data into a stream's input buffer through the control connection. no cap. let's go π¦
β¨ NAME β¨
roar_stream_add_data β adds data to a stream's input buffer using the control connection π
πΈ SYNOPSIS πΈ
#include <roaraudio.h>
int roar_stream_add_data(struct roar_connection * con, struct
roar_stream * s, char * data, size_t len);
π DESCRIPTION π
so this one adds data to the input buffer of a stream. it's giving very much like doing this:
write(stream_fh, data, len);
except β plot twist β it uses the control channel to add the data instead. same energy, different route. periodt. π
π PARAMETERS π
conβ the connection to the server. your lil hotline to roard, basically π«Άsβ the stream we're adding data to its input buffer. yes queen, this is the one getting feddataβ the data to add to the buffer. the actual goods π¦lenβ the length of the data to be added. how many bytes we're serving
β RETURN VALUE β
on success these calls return 0. on error, -1 is returned. simple as that, no drama π
π EXAMPLES π
FIXME
(yeah bestie, the examples are literally unwritten, it's giving incomplete but we move π)
π BUGS π
okay so, not to be the bearer of bad news butβ¦ this call doesn't work with the current roard. the server does not use all of the buffer size and complains about underruns. so like, it's broken broken. crying shaking throwing up π
π₯ SEE ALSO π₯
write(2), libroar(7), RoarAudio(7).
k that's the whole page bestie!! πβ¨ this was RoarAudio, dated May 2011, and honestly the vibes were immaculate even if the function is lowkey busted. go drink some water, ily, byeee ππ§
π¦ 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