Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

auwriteelement(3) [debian 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)

Check Out this Related Man Page

AuSoundRecord(3)					     Library Functions Manual						  AuSoundRecord(3)

Name
       AuSoundRecord - create a flow to record audio to any destination.

Synopsis
       #include <audio/audiolib.h>
       #include <audio/soundlib.h>

       AuEventHandlerRec *AuSoundRecord(server, source, gain, num_samples, mode, sound_data, flow, volume_mult_elem, status)
	   AuServer *server;
	   AuDeviceID source;
	   AuFixedPoint gain;
	   AuUint32 num_samples;
	   int mode;
	   AuSoundDataPtr sound_data;
	   AuFlowID *flow; /* RETURN */
	   int *volume_mult_elem; /* RETURN */
	   AuStatus *status; /* RETURN */

Arguments
       server	 Specifies the connection to the audio server.

       source	 Specifies the input device to use.

       gain	 Specifies the gain for the input device.

       num_samples
		 Specifies the number of samples to record.

       mode	 Specifies the line mode for the input device.	Currently the following line modes are defined: AuDeviceInputModeNone, AuDeviceIn-
		 putModeLineIn, AuDeviceInputModeMicrophone.

       sound_data
		 Specifies the sound information.

       flow	 If non-NULL, returns the flow ID.

       volume_mult_elem
		 Accord to the comment in the source, not implemented.

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

Description
       AuSoundRecord creates a flow to record audio from source to any destination and returns a pointer to the event handler created or  NULL	if
       there was an error. The sound_data structure contains the necessary information about the audio format and the data handling function.

Errors
       AuBadDevice.

See Also
       AuSoundRecordToBucket, AuSoundRecordToData, AuSoundRecordToFile, AuSoundRecordToFileN.

       audiolib - Network Audio System C Language Interface

soundlib							       1.9.3							  AuSoundRecord(3)
Man Page

2 More Discussions You Might Find Interesting

1. Programming

buffer over flow detected

Hi, my program stops with a buffer overflow error, but i can't understand the problem. I have a file like: int array; //global variable void func(){ int i; for(i=0;i<n;i++)array=-1; ... } I had the error when i added the array initialization. the file is a part of a C project. What... (1 Reply)
Discussion started by: littleboyblu
1 Replies

2. UNIX for Dummies Questions & Answers

Help! With File Moving

Hello, This is my first post, so please forgive my obvious lack of UNIX knowledge. I am trying/needing to write a script that follows this functional flow: 1. Access a config file that contains format:<directory> <filetype> <daterange> <directory> <filetype> <daterange> <directory>... (2 Replies)
Discussion started by: WildBeard83
2 Replies