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

Name

6       AuConvertDataToShort  - convert audio data from the specified format to
7       signed short integer.
8

Synopsis

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

Arguments

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

Description

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

See Also

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