logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

roar_stream_add_data - Adds data to a stream's input buffer using the control connection

Bugs

       This  call  doesn't  work  with  the  current  roard.  The server does not use all of the buffer size and
       complains about unterruns.

Description

       This adds data to the input buffer of a stream. It's like doing some thing like this:

        write(stream_fh, data, len);

       but uses the control channel to add the data.

Examples

       FIXME

Name

       roar_stream_add_data - Adds data to a stream's input buffer using the control connection

Parameters

con    The connection to the server.

       s      The stream to add data to it's input buffer.

       data   The data to add to the buffer.

       len    The length of the data to be added.

Return Value

       On success these calls return 0.  On error, -1 is returned.

See Also

write(2), libroar(7), RoarAudio(7).

RoarAudio                                           May 2011                             roar_stream_add_data(3)

Synopsis

       #include <roaraudio.h>

       int roar_stream_add_data(struct roar_connection * con, struct roar_stream * s, char * data, size_t len);

See Also