Changeset 2454


Ignore:
Timestamp:
Feb 13, 2009 3:57:46 PM (15 years ago)
Author:
bennylp
Message:

Bug in APS-Direct emulation in sound_port causing crash and tick noise, and handle wideband audio in APS-Direct emulation in pjsua_app.c

Location:
pjproject/branches/projects/aps-direct
Files:
2 edited

Legend:

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

    r2452 r2454  
    318318 
    319319            subfrm = pjmedia_frame_ext_get_subframe(fx, i);          
     320 
     321            if (!subfrm || subfrm->bitlen==0) 
     322                continue; 
    320323 
    321324            if ((subfrm->bitlen>>3) > (int)(size-size_decoded)) { 
     
    721724    { 
    722725        snd_port->frm_buf_size = sizeof(pjmedia_frame_ext) +  
    723                                  (samples_per_frame >> 1) + 
     726                                 (samples_per_frame << 1) + 
    724727                                 16 * sizeof(pjmedia_frame_ext_subframe); 
    725728        snd_port->put_frm_buf = (pj_uint8_t*) 
  • pjproject/branches/projects/aps-direct/pjsip-apps/src/pjsua/pjsua_app.c

    r2452 r2454  
    24652465    /* Reset conference port attributes. */ 
    24662466    conf->info.samples_per_frame = samples_per_frame; 
    2467     conf->info.clock_rate = 8000; 
     2467    conf->info.clock_rate = strm_info->param->info.clock_rate; 
    24682468    conf->info.channel_count = 1; 
    24692469    conf->info.bits_per_sample = 16; 
     
    24742474                                      -1, 
    24752475                                      -1, 
    2476                                       8000, 
    2477                                       1, 
     2476                                      strm_info->param->info.clock_rate, 
     2477                                      strm_info->param->info.channel_cnt, 
    24782478                                      samples_per_frame, 
    24792479                                      16, 
Note: See TracChangeset for help on using the changeset viewer.