dmG722DecoderCreate(3dm)

dmG722DecoderCreate - allocate new DMG722decoder structure

As shipped in IRIX 6.5.15. Unchanged since IRIX 6.5.

NAME
     dmG722DecoderCreate - allocate new DMG722decoder structure


SYNOPSIS
     #include <dmedia/dm_audioutil.h>


     DMstatus dmG722DecoderCreate(DMG722decoder *decoder, int maxsamples, int decode_mode)


PARAMETER
     decoder  DMG722decoder structure to be allocated.


     maxsamples
             maximum of the data samples that can be process by
             dmG722Decode(3dm) in a single call.  The input and output data
             format for dmG722Decode(3dm) are 8-bit unsigned char and 16-bit
             short, respectively.


     decode_mode
             G.722 decompression mode.  They can be 1, 2, or 3, which
             correspond to 64, 56 or 48 kbit/sec for audio coding and 0, 8 or
             16 kbit/sec. for data.


RETURNED VALUE
     If successful, function returns a DM_SUCCESS. A DM_FAILURE return value
     indicates an error.


DESCRIPTION
     dmG722DecoderCreate(3dm) allocates and initializes an DMG722decoder
     structure. This structure is then used for dmG722Decode(3dm) routine.


NOTE
SEE ALSO
     dmG722Decode(3dm), dmG722DecoderDestroy(3dm), ITU Recommendations G.722.