AuConvertDataToShort (3)
Leading comments
$NCDId: @(#)AuCDaTSh.man,v 1.1 1994/09/27 00:24:39 greg Exp $ copyright 1994 Steven King portions are * Copyright 1993 Network Computing Devices, Inc. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation, and that the name Network Computing...
Name
AuConvertDataToShort - convert audio data from the specified format to signed short integer.Synopsis
#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.
Description
AuConvertDataToShort converts num_bytes of data from format to signed short integer, returning 0 if successful, or -1 if format isn't valid.See Also
AuConvertShortToData.audiolib - Network Audio System C Language Interface