Ignore:
Timestamp:
Oct 14, 2011 4:15:15 AM (13 years ago)
Author:
bennylp
Message:

Committing re #1388: Support for OpenCORE AMR-NB codec (thank you Dan Arrhenius for the contribution!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_media.c

    r3585 r3816  
    275275#endif  /* PJMEDIA_HAS_L16_CODEC */ 
    276276 
     277#if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 
     278    /* Register OpenCORE AMR-NB codec */ 
     279    status = pjmedia_codec_opencore_amrnb_init(pjsua_var.med_endpt); 
     280    if (status != PJ_SUCCESS) { 
     281        pjsua_perror(THIS_FILE, "Error initializing OpenCORE AMR-NB codec", 
     282                     status); 
     283        return status; 
     284    } 
     285#endif /* PJMEDIA_HAS_OPENCORE_AMRNB_CODEC */ 
     286 
    277287 
    278288    /* Save additional conference bridge parameters for future 
     
    729739            pjmedia_codec_l16_deinit(); 
    730740#       endif   /* PJMEDIA_HAS_L16_CODEC */ 
     741 
     742#       if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 
     743            pjmedia_codec_opencore_amrnb_deinit(); 
     744#       endif   /* PJMEDIA_HAS_OPENCORE_AMRNB_CODEC */ 
    731745 
    732746        pjmedia_endpt_destroy(pjsua_var.med_endpt); 
Note: See TracChangeset for help on using the changeset viewer.