dmDVAudioEncode(3dm)

dmDVAudioEncode - implements DV and DVCPRO audio encode

As shipped in IRIX 6.5.15. Last changed in IRIX 6.5.5.

NAME
     dmDVAudioEncode - implements DV and DVCPRO audio encode


SYNOPSIS
     #include <dmedia/dm_audioutil.h>

     DMstatus dmDVAudioEncode(DMDVaudioencoder handle,
                          void *ibuf, void *obuf, int *nsamples)


PARAMETER
     handle    DMDVaudioencoder structure, created by
               dmDVAudioEncoderCreate(3dm), specifies the states of the signal
               processing parameters.


     ibuf      pointer to input sample data buffer.  The data format is short
               (16-bit).  The samples are assumed to be two's complement.
               Sampling rate can be either 32 kHz or 48 kHz.


     obuf      pointer to output data buffer which is a complete DIF frame.
               See dm_dv(3dm) for more info about DIF, DV, and DVCPRO.  The
               audio is inserted into the DIF frame without affecting any
               video that may or may not exist in the DIF frame. The DIF
               output buffer size must be either DM_DVAUDIO_NTSC_DIF_FRAMESIZE
               or DM_DVAUDIO_PAL_DIF_FRAMESIZE.


     nsamples  number of samples to be processed.  Returns the number of
               samples actually encoded.


RETURNED VALUE
     Returns DM_FAILURE or DM_SUCCESS.


DESCRIPTION
     dmDVAudioEncode(3dm) implements DV and DVCPRO audio compression.


SEE ALSO
     dmDVAudioEncoderGetFrameSize.3dm, dmDVAudioEncoderCreate.3dm,
     dmDVAudioEncoderReset.3dm, dmDVAudioEncoderDestroy.3dm,
     dmDVAudioEncoderSetParams.3dm, dmDVAudioEncoderGetParams.3dm.