Changeset 867 for pjproject/trunk/pjmedia/src/pjmedia-codec/gsm.c
- Timestamp:
- Dec 26, 2006 9:18:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/gsm.c
r627 r867 55 55 pj_pool_t *pool ); 56 56 static pj_status_t gsm_codec_open( pjmedia_codec *codec, 57 pjmedia_codec_param *attr );57 const pjmedia_codec_param *attr ); 58 58 static pj_status_t gsm_codec_close( pjmedia_codec *codec ); 59 static pj_status_t gsm_codec_modify(pjmedia_codec *codec, 60 const pjmedia_codec_param *attr ); 59 61 static pj_status_t gsm_codec_parse( pjmedia_codec *codec, 60 62 void *pkt, … … 81 83 &gsm_codec_open, 82 84 &gsm_codec_close, 85 &gsm_codec_modify, 83 86 &gsm_codec_parse, 84 87 &gsm_codec_encode, … … 386 389 */ 387 390 static pj_status_t gsm_codec_open( pjmedia_codec *codec, 388 pjmedia_codec_param *attr )391 const pjmedia_codec_param *attr ) 389 392 { 390 393 struct gsm_data *gsm_data = codec->codec_data; … … 392 395 pj_assert(gsm_data != NULL); 393 396 pj_assert(gsm_data->encoder == NULL && gsm_data->decoder == NULL); 394 395 PJ_UNUSED_ARG(attr);396 397 397 398 gsm_data->encoder = gsm_create(); … … 426 427 gsm_data->decoder = NULL; 427 428 } 429 430 return PJ_SUCCESS; 431 } 432 433 434 /* 435 * Modify codec settings. 436 */ 437 static pj_status_t gsm_codec_modify(pjmedia_codec *codec, 438 const pjmedia_codec_param *attr ) 439 { 440 struct gsm_data *gsm_data = codec->codec_data; 441 442 pj_assert(gsm_data != NULL); 443 pj_assert(gsm_data->encoder == NULL && gsm_data->decoder == NULL); 444 445 gsm_data->vad_enabled = (attr->setting.vad != 0); 446 gsm_data->plc_enabled = (attr->setting.plc != 0); 428 447 429 448 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.