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

    r2456 r2457  
    868868    } else if (frame->type == PJMEDIA_FRAME_TYPE_AUDIO && 
    869869               frame->buf == NULL && 
    870                stream->port.info.format.u32 == PJMEDIA_FORMAT_L16 && 
     870               stream->port.info.format.fmt_id == PJMEDIA_FORMAT_L16 && 
    871871               (stream->dir & PJMEDIA_DIR_ENCODING) && 
    872872               stream->codec_param.info.frm_ptime * 
     
    16061606    stream->port.info.clock_rate = info->fmt.clock_rate; 
    16071607    stream->port.info.channel_count = info->fmt.channel_cnt; 
    1608     stream->port.info.format = info->param->info.format; 
     1608    stream->port.info.format.fmt_id = info->param->info.fmt_id; 
     1609    stream->port.info.format.bitrate = info->param->info.avg_bps; 
     1610    stream->port.info.format.vad = (info->param->setting.vad != 0); 
    16091611    stream->port.port_data.pdata = stream; 
    1610     if (stream->port.info.format.u32 == PJMEDIA_FORMAT_L16) { 
     1612    if (stream->port.info.format.fmt_id == PJMEDIA_FORMAT_L16) { 
    16111613        stream->port.put_frame = &put_frame; 
    16121614        stream->port.get_frame = &get_frame; 
Note: See TracChangeset for help on using the changeset viewer.