AuConvertDataToShort(3nas)

AuConvertDataToShort3nas

Convert audio data from the specified format to signed short integer.

Usage

#include <audio/audiolib.h>

int AuConvertDataToShort(format, num_bytes, data)

int format;

int num_bytes;

AuPointer data;

Arguments

format

Specifies the format of the data. 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.

Overview

AuConvertDataToShort converts num_bytes of data from format to signed short integer, returning 0 if successful, or -1 if format isn't valid.

Releases

14 releases since Debian 2.1 (Slink); the text changed 6 times.

  1. 2.1–2.2
  2. 3.0
  3. 3.1
  4. 4.0
  5. 5.0–6.0
  6. 7
  7. 8–13

From libaudio-dev 1.9.4-9 in Debian 13 (Trixie). Parsed by carta from the page's man source.