Ignore:
Timestamp:
Feb 13, 2009 11:53:12 AM (12 years ago)
Author:
bennylp
Message:

Added APS-Direct emulation to sound port and pjsua_app.c, also fixed miscellaneous compilation warnings

File:
1 edited

Legend:

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

    r2445 r2452  
    642642            return PJMEDIA_CODEC_EINMODE; 
    643643 
    644         s->enc_setting.amr_nb = desc->pt == PJMEDIA_RTP_PT_AMR; 
     644        s->enc_setting.amr_nb = (pj_uint8_t)(desc->pt == PJMEDIA_RTP_PT_AMR); 
    645645        s->enc_setting.octet_aligned = octet_align; 
    646646        s->enc_setting.reorder = PJ_FALSE; /* Note this! passthrough codec 
     
    649649        s->enc_setting.cmr = 15; 
    650650         
    651         s->dec_setting.amr_nb = desc->pt == PJMEDIA_RTP_PT_AMR; 
     651        s->dec_setting.amr_nb = (pj_uint8_t)(desc->pt == PJMEDIA_RTP_PT_AMR); 
    652652        s->dec_setting.octet_aligned = octet_align; 
    653653        s->dec_setting.reorder = PJ_FALSE; /* Note this! passthrough codec 
     
    770770                output->size += sf_len; 
    771771 
    772 #if PJMEDIA_HAS_INTEL_IPP_CODEC_G729 
    773772                /* If there is SID or DTX frame, break the loop. */ 
    774773                if (desc->pt == PJMEDIA_RTP_PT_G729 &&  
     
    777776                    break; 
    778777                } 
    779 #endif 
    780778                 
    781779            } 
     
    799797 
    800798    pj_assert(input); 
     799    PJ_UNUSED_ARG(output_buf_len); 
    801800 
    802801#if PJMEDIA_HAS_PASSTHROUGH_CODEC_AMR 
Note: See TracChangeset for help on using the changeset viewer.