Prosody RTP processing: API: sm_vmptx_config_codec_silk_mode
Prototype Definition
int sm_vmptx_config_codec_silk_mode(struct sm_vmptx_config_codec_silk_mode_parms *codecp)
Parameters
- *codecp
-
a structure of the following type:
typedef struct sm_vmptx_config_codec_silk_mode_parms {
tSMVMPtxId vmptx; /* in */
tSM_INT sample_rate; /* in */
tSM_INT internal_rate; /* in */
tSM_INT bit_rate; /* in */
tSM_INT frames_per_packet; /* in */
tSM_INT packet_loss; /* in */
tSM_INT complexity; /* in */
tSM_INT use_fec; /* in */
tSM_INT use_dtx; /* in */
} SM_VMPTX_CONFIG_CODEC_SILK_MODE_PARMS;
Description
Modifies the configuration of the SILK codec.
Fields
- vmptx
- The VMP[tx] for which to change the codec parameters.
- sample_rate
- Sample rate of the audio being encoded. This must be the same as that
previously specified when
sm_vmptx_config_codec_silk()
was called to configure the VMP[tx].
- internal_rate
- Maximum sample rate used internally by the codec. See
sm_vmptx_config_codec_silk()
for more details.
- bit_rate
- The target bit rate. See
sm_vmptx_config_codec_silk()
for more details.
- frames_per_packet
- The number of frames to send per packet. See
sm_vmptx_config_codec_silk()
for more details.
- packet_loss
- An estimate of the current level of packet loss. See
sm_vmptx_config_codec_silk()
for more details.
- complexity
- The complexity of the algorithms used. See
sm_vmptx_config_codec_silk()
for more details.
- use_fec
- Non-zero to include data for "forward error correction" (FEC). See
sm_vmptx_config_codec_silk()
for more details.
- use_dtx
- Non-zero to suppress transmission of data during silence. See
sm_vmptx_config_codec_silk()
for more details.
Returns
0
if call completed successfully, otherwise a standard error such as:
- ERR_SM_DEVERR - device error
This function is part of the Prosody RTP processing API.