AEndConversion(3X)
NAME
AEndConversion − finish stream data conversion
SYNOPSIS
#include <Alib.h> void
AEndConversion (
Audio ∗ audio,
AConvertParams ∗ convert_params,
char ∗ dest_buffer,
long dest_buffer_size,
long ∗ bytes_written,
long ∗ status_return );
DESCRIPTION
AEndConversion() converts any data remaining in the conversion pipeline to the attributes specified in convert_params and puts the results in dest_buffer. The amount of data written is returned in bytes_written. AEndConversion() also frees the structure, convert_params.
audio specifies the Audio structure associated with this connection.
convert_params pointer to a structure describing conversion source and destination; returned by ASetupConversion().
dest_buffer the destination buffer; receives the converted data.
dest_buffer_size size in bytes of the destination buffer.
bytes_written receives the number of bytes written.
status_return receives the returned status of the operation, unless this parameter is passed in as a NULL pointer. If status_return is set to NULL, Alib will do the error handling.
ERRORS
If status_return is not set to NULL, it can return the following value:
0 AENoError No error - the call completed successfully.
NOTE
In order to ensure that the compiler finds the Audio Library (libAlib.sl) and the Alib.h header file, you must add the following switches:
-L /opt/audio/lib
-I/opt/audio/include
DEPENDENCIES
This function belongs to the Audio Library of functions that manage connections to an audio server. The audio server must run on a system that has audio hardware. To find out whether or not your system has audio hardware, refer to Using the Audio Developer’s Kit or the online help for the Audio control panel. For information about the audio capabilities of a particular system use the online example audioinfo.c.
AUTHOR
AEndConversion() was developed by HP.
SEE ALSO
ASetupConversion(3X), AConvertBuffer(3X),
Hewlett-Packard Company — Audio Library: February, 1995