Ignore:
Timestamp:
May 11, 2007 3:14:34 PM (17 years ago)
Author:
bennylp
Message:

HUGE changeset to make the rest of the libraries compile with C++ mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/echo_port.c

    r974 r1266  
    6060 
    6161    /* Create the port and the AEC itself */ 
    62     ec = pj_pool_zalloc(pool, sizeof(struct ec)); 
     62    ec = PJ_POOL_ZALLOC_T(pool, struct ec); 
    6363     
    6464    pjmedia_port_info_init(&ec->base.info, &AEC, SIGNATURE, 
     
    101101                     PJ_EINVAL); 
    102102 
    103     pjmedia_echo_capture(ec->ec, frame->buf, 0); 
     103    pjmedia_echo_capture(ec->ec, (pj_int16_t*)frame->buf, 0); 
    104104 
    105105    return pjmedia_port_put_frame(ec->dn_port, frame); 
     
    117117    status = pjmedia_port_get_frame(ec->dn_port, frame); 
    118118    if (status!=PJ_SUCCESS || frame->type!=PJMEDIA_FRAME_TYPE_AUDIO) { 
    119         pjmedia_zero_samples(frame->buf, this_port->info.samples_per_frame); 
     119        pjmedia_zero_samples((pj_int16_t*)frame->buf,  
     120                             this_port->info.samples_per_frame); 
    120121    } 
    121122 
    122     pjmedia_echo_playback(ec->ec, frame->buf); 
     123    pjmedia_echo_playback(ec->ec, (pj_int16_t*)frame->buf); 
    123124 
    124125    return status; 
Note: See TracChangeset for help on using the changeset viewer.