Scroll to navigation

AuMakeElementState(3) Library Functions Manual AuMakeElementState(3)


AuMakeElementState - initialize an element state structure


#include <audio/audiolib.h>

AuMakeElementState(state, flow, element_num, state)
AuElementState *state; /* RETURN */
AuFlowID flow;
unsigned char element_num;
unsigned char state;


Returns the initialized element state structure.
Specifies the ID of the flow.
Specifies the index of the element in flow. Use AuElementAll to specify the flow.
Specifies the state of the element. This should be one of thses constants: AuStateStop, AuStateStart, or AuStatePause.


AuMakeElementState initializes an AuElementState structure for use in a subsequent call to AuGetElementStates or AuSetElementStates.

AuMakeElementState is implemented as a macro.


AuBadFlow, AuBadElement.

audiolib - Network Audio System C Language Interface

1.9.4 audiolib - element state structure initialization