dmG726DecoderSetParams(3dm) dmG726DecoderSetParams(3dm)
NAME
dmG726DecoderSetParams - set G726 decoder parameter values
SYNOPSIS
#include <dmedia/dmaudioutil.h>
#include <dmedia/dmaudio.h>
#include <dmedia/dmparams.h>
DMstatus dmG726DecoderSetParams(DMG726decoder handle,
DMparams *params)
PARAMETER
handle DMG726decoder structure, created by dmG726DecoderCreate(3dm).
params List of parameters for specification. Null (0) value ok.
RETURNED VALUE
Returns DMSUCCESS or DMFAILURE.
DESCRIPTION
dmG726DecoderSetParams(3dm) sets state of G726 decoder with params.
Unrecognized parameters are ignored.
The set of parameters for params are, defined in dmedia/dm_audio.h and
dmedia/dm_audioutil.h:
DMAUDIOBITRATE
The corresponding value for DMAUDIOBITRATE is integer. The G.726
algorithm supports bit rate of any one of the following rates in the set
{16000, 24000, 32000, 40000} (bits/second).
DMG726NATIVEFORMAT
specifies the input or output (uncompressed or decompressed) sample date
format. The corresponding value for DMG726NATIVEFORMAT is one of the
following
AUDIOENCODINGULAW
AUDIOENCODINGALAW
AUDIOENCODINGLINEAR
Page 1
dmG726DecoderSetParams(3dm) dmG726DecoderSetParams(3dm)
Currently, data types supported are short for linear input/output sample
data or unsigned char for A-law or mu-law input/output sample data. For
linear output, the samples are assumed to be two's complement.
NOTE
SEE ALSO
dmG726DecoderCreate(3dm), dmG726Decode(3dm), dmG726DecoderGetParams(3dm).
Page 2