Prosody RTP processing: API: sm_vmptx_config_isac_rate

Prototype Definition

int sm_vmptx_config_isac_rate(struct sm_vmptx_isac_rate_parms *codecp)

Parameters

*codecp
a structure of the following type:
typedef struct sm_vmptx_isac_rate_parms {
	tSMVMPtxId vmptx;					/* in */
	tSM_INT rate;						/* in */
	tSM_INT ptime;						/* in */
} SM_VMPTX_ISAC_RATE_PARMS;

Description

Configures a VMP[tx] which is running the iSAC codec to generate output data at an explict rate. The data rate of an iSAC codec can be explicitly configured or it can automatically adapt its transmitter to network conditions using information derived from the corresponding receiver.

Note that if a transmitter is already running and automatically adapting using a corresponding receiver, the rate configured with this function is ignored.

Fields

vmptx
The VMP[tx] which is running the iSAC codec
rate
The short-term average bit rate in bits per second.
ptime
The length of the RTP media, in milliseconds, to send in each packet. Applications should specify ptime as 30, or 60.

Returns

0 if call completed successfully, otherwise a standard error such as:


This function is part of the Prosody RTP processing API.