unParm1

set to a value from the eIPM_CODER_OPTION_PARMS enumeration

For AMR, set to 0.

For EVRC, where the media type is

MEDIATYPE_AUDIO_REMOTE_CODER_OPTIONS_INFO, valid value is:

CODER_OPT_INTERLEAVE_LENGTH - Reduce the listener’s perception of data loss by spreading such a loss over non-consecutive vocoder frames.

CODER_OPT_CDMA_RATE_REDUC - Rate reduction. Bit rate is varied to achieve a variety of average bit rates for more flexibility in bandwidth usage.

nValue1

The value set here is for the parameter specified in unParm1.

For AMR, set to 0.

For EVRC, where unParm1=CODER_OPT_INTERLEAVE_LENGTH, possible values are in the range 0 to 7. The default value is 0.

For EVRC, where unParm1=CODER_OPT_CDMA_RATE_REDUC, possible values are 0 and 4. Default value is 0.

unParm2

For AMR, set to 0.

For EVRC, set to 0.

nValue2

For AMR, set to 0.

For EVRC, set to 0.

„Example

The following code example shows how to set options when using an EVRC coder type:

... /* Setup IP address here */

// Local Audio Coder

ipmMediaInfo.MediaData[unCount].eMediaType = MEDIATYPE_AUDIO_LOCAL_CODER_INFO; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eCoderType = CODER_TYPE_EVRC; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eFrameSize = CODER_FRAMESIZE_20; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.unFramesPerPkt = 2; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eVadEnable = CODER_VAD_DISABLE; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.unCoderPayloadType = 96; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.unRedPayloadType = 0;

unCount++;

// Remote Audio Coder

ipmMediaInfo.MediaData[unCount].eMediaType = MEDIATYPE_AUDIO_REMOTE_CODER_INFO; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eCoderType = CODER_TYPE_EVRC; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eFrameSize = CODER_FRAMESIZE_20; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.unFramesPerPkt = 2; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.eVadEnable = CODER_VAD_DISABLE; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.unCoderPayloadType = 96; ipmMediaInfo.MediaData[unCount].mediaInfo.AudioCoderInfo.unRedPayloadType = 0 ;

unCount++;

Dialogic® Multimedia Software for ATCA Release 1.0 Release Update, Rev 06 — January 23, 2008

31

Dialogic Corporation

 

Page 31
Image 31
Dialogic DIALOGIC MULTIMEDIA SOFTWARE FOR ADVANCEDTCA RELEASE 1.0, 05-2548-006 manual „ Example