Ignore:
Timestamp:
Feb 17, 2009 3:19:45 PM (11 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/conf_switch.c

    r2456 r2457  
    589589 
    590590    /* Source and sink format must match. */ 
    591     if (src_port->info->format.u32 != dst_port->info->format.u32) { 
     591    if (src_port->info->format.fmt_id != dst_port->info->format.fmt_id) { 
    592592        pj_mutex_unlock(conf->mutex); 
    593593        return PJMEDIA_ENOTCOMPATIBLE; 
     
    952952 
    953953    /* Level adjustment is applicable only for ports that work with raw PCM. */ 
    954     PJ_ASSERT_RETURN(conf_port->info->format.u32 == PJMEDIA_FORMAT_L16, 
     954    PJ_ASSERT_RETURN(conf_port->info->format.fmt_id == PJMEDIA_FORMAT_L16, 
    955955                     PJ_EIGNORED); 
    956956 
     
    986986 
    987987    /* Level adjustment is applicable only for ports that work with raw PCM. */ 
    988     PJ_ASSERT_RETURN(conf_port->info->format.u32 == PJMEDIA_FORMAT_L16, 
     988    PJ_ASSERT_RETURN(conf_port->info->format.fmt_id == PJMEDIA_FORMAT_L16, 
    989989                     PJ_EIGNORED); 
    990990 
     
    11111111        /* Check port format. */ 
    11121112        if (cport_dst->port && 
    1113             cport_dst->port->info.format.u32 == PJMEDIA_FORMAT_L16) 
     1113            cport_dst->port->info.format.fmt_id == PJMEDIA_FORMAT_L16) 
    11141114        { 
    11151115            /* When there is already some samples in listener's TX buffer,  
Note: See TracChangeset for help on using the changeset viewer.