Scroll to navigation

AuReadElement(3) Library Functions Manual AuReadElement(3)


AuReadElement - read data from an ExportClient element in a flow


#include <audio/audiolib.h>

void AuReadElement(server, flow, element, num_bytes, data, status)
AuServer *server;
AuFlowID flow;
int element;
AuUint32 num_bytes;
AuPointer data;
AuStatus *status; /* RETURN */


Specifies the connection to the audio server.
Specifies the ID of the flow.
Specifies the index of the ExportClient element to read the data from.
Specifies the number of bytes of audio data to read.
Specifies the buffer to read the audio data into.
If non-NULL, flush the output buffer and return the status from the server.


AuReadElement transfers audio data from the server to the client application, reading num_bytes from the ExportClient specified by element in audio flow flow into data.


If the flow is "trivial" (consisting only of an ExportClient and an ImportBucket), the num_samples fields in the ExportClient and ImportBucket are ignored.


AuBadFlow, AuBadElement.

See Also


audiolib - Network Audio System C Language Interface

1.9.4 audiolib - read from element