Ignore:
Timestamp:
Feb 18, 2009 2:28:49 PM (11 years ago)
Author:
nanang
Message:
  • Added APS-direct sound device management into pjsua-lib (and removed it from apps).
  • Fixed bug in conf_switch.c to always update ts_rx (even if port is not transmitting).
  • Minor updates: 'fmt_id' to 'id', added transmitter_Cnt in conf port info, explicit mapping in Symbian audio APS impl from pjmedia_format_id to Symbian APS fourcc.
File:
1 edited

Legend:

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

    r2457 r2460  
    868868    } else if (frame->type == PJMEDIA_FRAME_TYPE_AUDIO && 
    869869               frame->buf == NULL && 
    870                stream->port.info.format.fmt_id == PJMEDIA_FORMAT_L16 && 
     870               stream->port.info.format.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.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); 
     1608    stream->port.info.format.id = info->param->info.fmt_id; 
    16111609    stream->port.port_data.pdata = stream; 
    1612     if (stream->port.info.format.fmt_id == PJMEDIA_FORMAT_L16) { 
     1610    if (stream->port.info.format.id == PJMEDIA_FORMAT_L16) { 
    16131611        stream->port.put_frame = &put_frame; 
    16141612        stream->port.get_frame = &get_frame; 
    16151613    } else { 
     1614        stream->port.info.format.bitrate = info->param->info.avg_bps; 
     1615        stream->port.info.format.vad = (info->param->setting.vad != 0); 
     1616 
    16161617        stream->port.put_frame = &put_frame; 
    16171618        stream->port.get_frame = &get_frame_ext; 
Note: See TracChangeset for help on using the changeset viewer.