muroar_stream(3)
β¨ muroar_stream β the muRoar Programmer's Manual glow-up β¨
okay bestie, sit down, we're learning muroar_stream(3) from the muRoar Programmer's Manual and honestly? it's giving one-way ticket to stream town. π
πΈ NAME πΈ
muroar_stream β Create a stream connected to a RoarAudio sound server π
π¦ SYNOPSIS π¦
#include <muroar.h>
muroar_t muroar_stream (muroar_t fh, int dir, int * stream, int codec,
int rate, int channels, int bits);
π DESCRIPTION π
so basically this function connects a stream to a sound server that supports the RoarAudio protocol. it takes a connected control connection β one you already made with roar_connect(3) β and converts it into a connected stream. glow-up complete. π
but bestie, hear me: after this, the socket can no longer be used as control connection. it's a stream now. it said "new me, who dis". no takebacks. π
π PARAMETERS π
fhβ the connected control connection. your original, pre-glow-up socket.dirβ the stream direction for the new stream. for playback of a waveform stream (PCM data) this isMUROAR_PLAY_WAVE. for all possible values see the official muRoar manual. πstreamβ a pointer to an integer where muRoar stores the stream ID. if your application does not need to know the stream ID of the new stream this can be set toNULL. no thoughts, head empty, passNULL. πcodecβ the codec to be used for the new stream. for signed PCM in host byte order useMUROAR_CODEC_PCMorMUROAR_CODEC_PCM_S. for unsigned PCM useMUROAR_CODEC_PCM_U. there are a lot other codecs defined. however, using a codec not supported by the server will result an failure of this call. π for all possible values see the official muRoar manual.rateβ the sample/frame rate the new stream will use. for streams this setting does not make any sense, set this to zero. β¨channelsβ the number of channels for the new stream. for streams this setting does not make any sense, set this to zero. β¨bitsβ the number of bits per sample to be used by the data. for streams this setting does not make any sense, set this to zero. β¨
lowkey noticing a theme? rate, channels, bits? all zero. they're not the main characters here, the stream is. π
π RETURN VALUE π
on success this call return the new stream IO handle. π₯³ this may be the same as the control connection or a new one, and the control connection is closed. on error, MUROAR_HANDLE_INVALID is returned. π
π BUGS π
in failure where is no way to tell was was going wrong.
yes bestie, that's the whole bug report. it is what it is. π the error gives you nothing. no explanation, no context, just vibes and silence.
π§ HISTORY π§
this function first appeared in muRoar version 0.1beta0. a legend from day one, fr fr. π
β SEE ALSO β
and that's the whole page, bestie β stream created, control connection gone, rate/channels/bits all zeroed out like a true minimalist. π«Ά
muRoar Β· April 2012 Β· mwah, love u, go read muroar_connect(3) next πβ¨
π¦ where this page comes from
- ubuntu jammy: libmuroar-dev 0.1.13-7 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms