---
name: "AuConvertShortToData"
section: "3x"
platform: "linux"
package: "nas"
version: "1.2p5-3"
release: "Debian 2.0 (Hamm)"
platforms: ["linux"]
url: "https://new.carta.tech/AuConvertShortToData/3x"
---

# AuConvertShortToData(3x)

convert signed short integers to the specified format.

## Name

**AuConvertShortToData** - convert signed short integers to the specified format.

## Synopsis

\#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**, and **AuFormatLinearUnsigned16LSB**.

- *num\_bytes*

  Specifies the number of bytes of data.

- *data*

  Specifies the data to convert.

## Description

**AuConvertShortToData** converts *num\_bytes* of *data* from signed short integer to *format*, returning 0 if successful, or -1 if *format* isn't valid.

## See Also

**AuConvertDataToShort**.

audiolib - **Network Audio System** C Language Interface
