1AuConvertShortToData(3)    Library Functions Manual    AuConvertShortToData(3)
2
3
4

Name

6       AuConvertShortToData  -  convert signed short integers to the specified
7       format.
8

Synopsis

10       #include <audio/audiolib.h>
11
12       int AuConvertShortToData(format, num_bytes, data)
13           int format;
14           int num_bytes;
15           AuPointer data;
16

Arguments

18       format    Specifies the format to convert to.  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

Description

29       AuConvertShortToData converts num_bytes of data from signed short inte‐
30       ger to format, returning 0 if successful, or -1 if format isn't valid.
31

See Also

33       AuConvertDataToShort.
34
35       audiolib - Network Audio System C Language Interface
36
37
38
39audioutil                            1.9.1             AuConvertShortToData(3)
Impressum