- Timestamp:
- Jul 15, 2011 9:51:46 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/streamutil.c
r3514 r3661 101 101 static pj_status_t init_codecs(pjmedia_endpt *med_endpt) 102 102 { 103 pj_status_t status; 104 105 /* To suppress warning about unused var when all codecs are disabled */ 106 PJ_UNUSED_ARG(status); 107 108 #if defined(PJMEDIA_HAS_G711_CODEC) && PJMEDIA_HAS_G711_CODEC!=0 109 status = pjmedia_codec_g711_init(med_endpt); 110 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 111 #endif 112 113 #if defined(PJMEDIA_HAS_GSM_CODEC) && PJMEDIA_HAS_GSM_CODEC!=0 114 status = pjmedia_codec_gsm_init(med_endpt); 115 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 116 #endif 117 118 #if defined(PJMEDIA_HAS_SPEEX_CODEC) && PJMEDIA_HAS_SPEEX_CODEC!=0 119 status = pjmedia_codec_speex_init(med_endpt, 0, -1, -1); 120 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 121 #endif 122 123 #if defined(PJMEDIA_HAS_G722_CODEC) && PJMEDIA_HAS_G722_CODEC!=0 124 status = pjmedia_codec_g722_init(med_endpt); 125 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 126 #endif 127 128 #if defined(PJMEDIA_HAS_L16_CODEC) && PJMEDIA_HAS_L16_CODEC!=0 129 status = pjmedia_codec_l16_init(med_endpt, 0); 130 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 131 #endif 132 133 return PJ_SUCCESS; 103 return pjmedia_codec_register_audio_codecs(med_endpt, NULL); 134 104 } 135 105
Note: See TracChangeset
for help on using the changeset viewer.