1AuConvertDataToShort(3) Library Functions Manual AuConvertDataToShort(3)
2
3
4
6 AuConvertDataToShort - convert audio data from the specified format to
7 signed short integer.
8
10 #include <audio/audiolib.h>
11
12 int AuConvertDataToShort(format, num_bytes, data)
13 int format;
14 int num_bytes;
15 AuPointer data;
16
18 format Specifies the format of the data. Currently, the following
19 data formats are defined: AuFormatULAW8, AuFormatLinearUnâ
20 signed8, AuFormatLinearSigned8, AuFormatLinearSigned16MSB,
21 AuFormatLinearUnsigned16MSB, AuFormatSignedLinear16LSB, and
22 AuFormatLinearUnsigned16LSB.
23
24 num_bytes Specifies the number of bytes of data.
25
26 data Specifies the data to convert.
27
29 AuConvertDataToShort converts num_bytes of data from format to signed
30 short integer, returning 0 if successful, or -1 if format isn't valid.
31
33 AuConvertShortToData.
34
35 audiolib - Network Audio System C Language Interface
36
37
38
39audioutil 1.9.4 AuConvertDataToShort(3)