Ignore:
Timestamp:
May 11, 2007 3:14:34 PM (14 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/plc_common.c

    r974 r1266  
    8787    PJ_UNUSED_ARG(options); 
    8888 
    89     plc = pj_pool_zalloc(pool, sizeof(pjmedia_plc)); 
     89    plc = PJ_POOL_ZALLOC_T(pool, pjmedia_plc); 
    9090 
    9191    if (0) 
     
    151151    PJ_UNUSED_ARG(clock_rate); 
    152152 
    153     o = pj_pool_alloc(pool, sizeof(struct replay_plc)); 
     153    o = PJ_POOL_ALLOC_T(pool, struct replay_plc); 
    154154    o->size = samples_per_frame * 2; 
    155155    o->replay_cnt = 0; 
    156     o->frame = pj_pool_zalloc(pool, o->size); 
     156    o->frame = (pj_int16_t*) pj_pool_zalloc(pool, o->size); 
    157157 
    158158    return o; 
     
    161161static void plc_replay_save(void *plc, pj_int16_t *frame) 
    162162{ 
    163     struct replay_plc *o = plc; 
     163    struct replay_plc *o = (struct replay_plc*) plc; 
    164164 
    165165    pj_memcpy(o->frame, frame, o->size); 
     
    169169static void plc_replay_generate(void *plc, pj_int16_t *frame) 
    170170{ 
    171     struct replay_plc *o = plc; 
     171    struct replay_plc *o = (struct replay_plc*) plc; 
    172172    unsigned i, count; 
    173173    pj_int16_t *samp; 
Note: See TracChangeset for help on using the changeset viewer.