Ignore:
Timestamp:
Jul 15, 2011 9:51:46 AM (13 years ago)
Author:
bennylp
Message:

Fixed #1294: New pjmedia_codec_register_audio_codecs() API to register all known codecs, and also added implementation to deregister all codecs when the media endpoint is destroyed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjsip-apps/src/samples/pcaputil.c

    r3392 r3661  
    229229 
    230230    /* Initialize all codecs */ 
    231 #if PJMEDIA_HAS_SPEEX_CODEC 
    232     T( pjmedia_codec_speex_init(app.mept, 0, 10, 10) ); 
    233 #endif /* PJMEDIA_HAS_SPEEX_CODEC */ 
    234  
    235 #if PJMEDIA_HAS_ILBC_CODEC 
    236     T( pjmedia_codec_ilbc_init(app.mept, 30) ); 
    237 #endif /* PJMEDIA_HAS_ILBC_CODEC */ 
    238  
    239 #if PJMEDIA_HAS_GSM_CODEC 
    240     T( pjmedia_codec_gsm_init(app.mept) ); 
    241 #endif /* PJMEDIA_HAS_GSM_CODEC */ 
    242  
    243 #if PJMEDIA_HAS_G711_CODEC 
    244     T( pjmedia_codec_g711_init(app.mept) ); 
    245 #endif  /* PJMEDIA_HAS_G711_CODEC */ 
    246  
    247 #if PJMEDIA_HAS_G722_CODEC 
    248     T( pjmedia_codec_g722_init(app.mept) ); 
    249 #endif  /* PJMEDIA_HAS_G722_CODEC */ 
    250  
    251 #if PJMEDIA_HAS_L16_CODEC 
    252     T( pjmedia_codec_l16_init(app.mept, 0) ); 
    253 #endif  /* PJMEDIA_HAS_L16_CODEC */ 
     231    T( pjmedia_codec_register_audio_codecs(app.mept, NULL) ); 
    254232 
    255233    /* Create SRTP transport is needed */ 
Note: See TracChangeset for help on using the changeset viewer.