Ignore:
Timestamp:
Feb 17, 2009 3:19:45 PM (14 years ago)
Author:
bennylp
Message:

Added bitrate and vad info in pjmedia_format, and changed audio route to use enumeration rather than boolean

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/aps-direct/pjmedia/src/pjmedia-codec/passthrough.c

    r2456 r2457  
    156156    const char      *name;              /* Codec name.                      */ 
    157157    pj_uint8_t       pt;                /* Payload type.                    */ 
    158     pjmedia_format   format;            /* Source format.                   */ 
     158    pjmedia_format_id fmt_id;           /* Source format.                   */ 
    159159    unsigned         clock_rate;        /* Codec's clock rate.              */ 
    160160    unsigned         channel_count;     /* Codec's channel count.           */ 
     
    173173{ 
    174174#   if PJMEDIA_HAS_PASSTHROUGH_CODEC_AMR 
    175     {1, "AMR",      PJMEDIA_RTP_PT_AMR,       {PJMEDIA_FORMAT_AMR}, 
     175    {1, "AMR",      PJMEDIA_RTP_PT_AMR,       PJMEDIA_FORMAT_AMR, 
    176176                    8000, 1, 160,  
    177177                    7400, 12200, 2, 1, 1, 
     
    182182 
    183183#   if PJMEDIA_HAS_PASSTHROUGH_CODEC_G729 
    184     {1, "G729",     PJMEDIA_RTP_PT_G729,      {PJMEDIA_FORMAT_G729}, 
     184    {1, "G729",     PJMEDIA_RTP_PT_G729,      PJMEDIA_FORMAT_G729, 
    185185                    8000, 1,  80, 
    186186                    8000, 8000, 2, 1, 1 
     
    189189 
    190190#   if PJMEDIA_HAS_PASSTHROUGH_CODEC_ILBC 
    191     {1, "iLBC",     PJMEDIA_RTP_PT_ILBC,      {PJMEDIA_FORMAT_ILBC}, 
     191    {1, "iLBC",     PJMEDIA_RTP_PT_ILBC,      PJMEDIA_FORMAT_ILBC, 
    192192                    8000, 1,  240, 
    193193                    13333, 15200, 1, 1, 1, 
     
    198198 
    199199#   if PJMEDIA_HAS_PASSTHROUGH_CODEC_PCMU 
    200     {1, "PCMU",     PJMEDIA_RTP_PT_PCMU,      {PJMEDIA_FORMAT_PCMU}, 
     200    {1, "PCMU",     PJMEDIA_RTP_PT_PCMU,      PJMEDIA_FORMAT_PCMU, 
    201201                    8000, 1,  80, 
    202202                    64000, 64000, 2, 1, 1 
     
    205205 
    206206#   if PJMEDIA_HAS_PASSTHROUGH_CODEC_PCMA 
    207     {1, "PCMA",     PJMEDIA_RTP_PT_PCMA,      {PJMEDIA_FORMAT_PCMA}, 
     207    {1, "PCMA",     PJMEDIA_RTP_PT_PCMA,      PJMEDIA_FORMAT_PCMA, 
    208208                    8000, 1,  80, 
    209209                    64000, 64000, 2, 1, 1 
     
    450450                                    codec_desc[i].channel_count /  
    451451                                    codec_desc[i].clock_rate); 
    452             attr->info.format = codec_desc[i].format; 
     452            attr->info.fmt_id = codec_desc[i].fmt_id; 
    453453 
    454454            /* Default flags. */ 
Note: See TracChangeset for help on using the changeset viewer.