1AuWriteElement(3)          Library Functions Manual          AuWriteElement(3)
2
3
4

Name

6       AuWriteElement - write data to an ImportClient element in a flow
7

Synopsis

9       #include <audio/audiolib.h>
10
11       void    AuWriteElement(server,    flow,   element,   num_bytes,   data,
12       end_of_data, status)
13           AuServer *server;
14           AuFlowID flow;
15           int element;
16           AuUint32 num_bytes;
17           AuPointer data;
18           AuBool end_of_data;
19           AuStatus *status; /* RETURN */
20

Arguments

22       server    Specifies the connection to the audio server.
23
24       flow      Specifies the ID of the flow.
25
26       element   Specifies the index of the ImportClient element to write  the
27                 data to.
28
29       num_bytes Specifies the number of bytes of audio data to write.
30
31       data      Specifies the buffer to get the audio data from.
32
33       end_of_data
34                 Specifies if this is the last write for this import.
35
36       status    If  non-NULL,  flush  the output buffer and return the status
37                 from the server.
38

Description

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

Note

46       If the flow is "trivial" (consisting only of an ImportClient and an Ex‐
47       portBucket), the num_samples fields in  the  ImportClient  and  Export‐
48       Bucket  are  ignored and a write past the end of the bucket will result
49       in an AuBadLength error.
50

Errors

52       AuBadFlow, AuBadElement, AuBadValue, AuBadLength.
53

See Also

55       AuReadElement.
56
57       audiolib - Network Audio System C Language Interface
58
59
60
61audiolib - write to element          1.9.5                   AuWriteElement(3)
Impressum