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

muroar_write - Write data to a stream in a portable way

Description

       This function writes a block of data to a connected stream.  It exists to have a portable way to send the
       data to the sound server that does not depend on the underlying operating system.

History

       This function first appeared in muRoar version 0.1beta0.

Name

       muroar_write - Write data to a stream in a portable way

Notes

       This  function calls the underlying write function in a loop.  If this returns less than the given length
       you should not re-try directly but wait at least some milisecunds.

Parameters

fh     The stream file handle connected to the server.  This must be opend using muroar_stream(3).buf    A pointer to the block of data that should be written.

       len    The total length in byte of the data that should be written.

Return Value

       On success this call return the number of successful written bytes.  On error, -1 is returned.

See Also

write(2), muroar_read(3), muroar_stream(3), muroar_close(3), RoarAudio(7).

muRoar                                             April 2012                                    muroar_write(3)

Synopsis

       #include <muroar.h>

       ssize_t muroar_write  (muroar_t fh, const void * buf, size_t len);

See Also