Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

aumakechangestateaction(3) [debian man page]

AuMakeChangeStateAction(3)				     Library Functions Manual					AuMakeChangeStateAction(3)

Name
       AuMakeChangeStateAction - initialize an action

Synopsis
       #include <audio/audiolib.h>

       AuMakeChangeStateAction(action, trigger_state, trigger_prev_state, trigger_reason, flow, element_num, new_state)
	   AuElementAction action; /* RETURN */
	   unsigned char trigger_state;
	   unsigned char trigger_prev_state;
	   unsigned char trigger_reason;
	   AuFlowID flow;
	   unsigned char element_num;
	   unsigned char new_state;

Arguments
       action	 Returns the initialized action.

       trigger_state
		 Specifies  the  state that triggers the action.  This must be one of these constants: AuStateStop, AuStateStart, AuStatePause, or
		 AuStateAny.

       trigger_prev_state
		 Specifies the previous state for the trigger.	This must be one of these constants: AuStateStop, AuStateStart,  AuStatePause,	or
		 AuStateAny.

       trigger_reason
		 Specifies  the  reason  for  the  action.   This must be one of these constants: AuReasonUser, AuReasonUnderrun, AuReasonOverrun,
		 AuReasonEOF, AuReasonWatermark, AuReasonHardware, or AuReasonAny.

       flow	 Specifies the ID of the flow to affect.

       element_num
		 Specifies the index of the element to affect.

       new_state Specifies the new state for the flow.	This must be one of thses constants: AuStateStop, AuStateStart, or AuStatePause.

Description
       AuMakeChangeStateAction sets the action field of action to AuElementActionChangeState and initializes the other fields with  the  remaining
       arguments.

       AuMakeChangeStateAction is implemented as a macro.

See Also
       AuMakeSendNotifyAction, AuMakeNoopAction.

       audiolib - Network Audio System C Language Interface

audiolib - action initialization				       1.9.3						AuMakeChangeStateAction(3)

Check Out this Related Man Page

AuWriteElement(3)					     Library Functions Manual						 AuWriteElement(3)

Name
       AuWriteElement - write data to an ImportClient element in a flow

Synopsis
       #include <audio/audiolib.h>

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

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.

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

Errors
       AuBadFlow, AuBadElement, AuBadValue, AuBadLength.

See Also
       AuReadElement.

       audiolib - Network Audio System C Language Interface

audiolib - write to element					       1.9.3							 AuWriteElement(3)
Man Page