AuConvertShortToData3nas
Convert signed short integers to the specified format.
Usage
#include <audio/audiolib.h>
int AuConvertShortToData(format, num_bytes, data)
int format;
int num_bytes;
AuPointer data;
Arguments
- format
-
Specifies the format to convert to. Currently, the following data formats are defined:
AuFormatULAW8,AuFormatLinearUnsigned8,AuFormatLinearSigned8,AuFormatLinearSigned16MSB,AuFormatLinearUnsigned16MSB,AuFormatSignedLinear16LSB, andAuFormatLinearUnsigned16LSB.
- num_bytes
-
Specifies the number of bytes of data.
- data
-
Specifies the data to convert.
Overview
AuConvertShortToData converts num_bytes of data from signed short integer to format, returning 0 if successful, or -1 if format isn't valid.
Releases
14 releases since Debian 2.1 (Slink); the text changed 6 times.