roar_simple_stream(3)
π roar_simple_stream(3) π
okay bestie, welcome to the RoarAudio corner of the System Manager's Manual. this one's about roar_simple_stream and it's giving "legacy but make it cute" π
β¨ NAME β¨
roar_simple_stream β opens a stream to RoarAudio's sound server π¦
πΈ SYNOPSIS πΈ
#include <roaraudio.h>
int roar_simple_stream(int rate, int channels, int bits, int codec, char
* server, int dir, char * name);
π DESCRIPTION π
so basically this creates a brand new stream to RoarAudio. that's the whole vibe β¨
but ngl, normally you don't want to call this directly β you want to use one of roar_simple_play(3), roar_simple_monitor(3), roar_simple_record(3) or roar_simple_filter(3) instead. they're the ones holding the main character energy π
π heads up bestie, this is the important part: these functions are marked obsolete and will be removed very soon. no cap. please upgrade to the VS API β go look at roar_vs_new_simple(3) π«Ά
π PARAMETERS π
rate,channels,bits,codec,server,nameβ for the full explanation on all of these, go readroar_simple_play(3), it's got you πdirβ the direction of the new stream. valid directions are listed right below, keep scrolling π
π§ STREAM DIRECTIONS π§
ROAR_DIR_PLAYβ this direction means a player streams data to the server so it can play it back. classic πΆROAR_DIR_RECORDβ this one is for recording audio from the soundcard. use it when you want to grab data from your microphone or your line in π€ROAR_DIR_MONITORβ this gets you a copy of whatever the server is sending to the soundcard. iconic use case: streaming the fully mixed data to Icecast (checkicecast2(1)) π₯ROAR_DIR_FILTERβ this creates a filter stream. a filter stream filters the output of the sound server through some tool β a software equalizer, for example. and listen: the filter stream is the only bi-directional stream. you have to read some data and write back data of exactly the same size. exactly. same size. don't play with it πROAR_DIR_OUTPUTβ this is the type of stream the server sends to the soundcard. you can not create such a stream. it's only listed here for completeness. it's literally just here to be perceived π
β RETURN VALUE β
on success, these calls return a filehandle π
on error, -1 is returned. that's it, that's the tea π
π EXAMPLES π
FIXME
(yes. that's genuinely what's there. no notes. the examples are forthcoming, bestie π )
π¦ SEE ALSO π¦
and that's the whole page, bestie, you ate it up π
this little icon dropped back in May 2011 as part of RoarAudio β yeah she's been around a while, hence the whole obsolete situation π mwah, go use the VS API π«Ά
π¦ 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