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

AuWriteElement - write data to an ImportClient element in a flow

Arguments

server    Specifies the connection to the audio server.

       flow      Specifies the ID of the flow.

       element   Specifies the index of the ImportClient element to write the data to.

       num_bytes Specifies the number of bytes of audio data to write.

       data      Specifies the buffer to get the audio data from.

       end_of_data
                 Specifies if this is the last write for this import.

       status    If non-NULL, flush the output buffer and return the status from the server.

Description

AuWriteElement  transfers  audio  data  from the client application to the server, writing num_bytes from
       data to the ImportClient specified by element in the audio flow flow.   If  end_of_data  is  AuTrue,  the
       ImportClient's eof flag will be set when the write is completed.

Errors

AuBadFlow, AuBadElement, AuBadValue, AuBadLength.

Name

AuWriteElement - write data to an ImportClient element in a flow

Note

       If the flow is "trivial" (consisting only of an ImportClient and an ExportBucket), the num_samples fields
       in the ImportClient and ExportBucket are ignored and a write past the end of the bucket will result in an
       AuBadLength error.

See Also

AuReadElement.

       audiolib - NetworkAudioSystem C Language Interface

audiolib - write to element                           1.9.4                                    AuWriteElement(3)

Synopsis

       #include <audio/audiolib.h>

       void AuWriteElement(server, flow, element, num_bytes, data, end_of_data, status)
           AuServer *server;
           AuFlowIDflow;
           int element;
           AuUint32num_bytes;
           AuPointerdata;
           AuBoolend_of_data;
           AuStatus *status; /* RETURN */

See Also