Ignore:
Timestamp:
May 13, 2006 10:46:23 PM (18 years ago)
Author:
bennylp
Message:

Another major modifications in PJMEDIA:

  • handle multiple frames in one packet
  • split stream creation into two steps to allow customization
  • PLC framework and implementation with G.711 and speex
  • stream returns NO_FRAME correctly.
  • added ptime argument in pjsua
File:
1 edited

Legend:

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

    r417 r438  
    2727static void  plc_replay_save(void*, pj_int16_t*); 
    2828static void  plc_replay_generate(void*, pj_int16_t*); 
    29  
    30 static void* noplc_create(pj_pool_t*, unsigned c, unsigned f); 
    31 static void  noplc_save(void*, pj_int16_t*); 
    32 static void  noplc_generate(void*, pj_int16_t*); 
    3329 
    3430extern void* pjmedia_plc_g711_create(pj_pool_t*, unsigned c, unsigned f); 
     
    6359    &plc_replay_save, 
    6460    &plc_replay_generate 
    65 }; 
    66  
    67  
    68 static struct plc_alg no_plc = 
    69 { 
    70     &noplc_create, 
    71     &noplc_save, 
    72     &noplc_generate 
    7361}; 
    7462 
     
    202190 
    203191 
    204 ////////////////////////////////////////////////////////////////////////////// 
    205 /* 
    206  * No PLC 
    207  */ 
    208 static void* noplc_create(pj_pool_t *pool, unsigned clock_rate,  
    209                           unsigned samples_per_sec) 
    210 { 
    211     PJ_UNUSED_ARG(pool);     
    212     PJ_UNUSED_ARG(clock_rate); 
    213     return (void*) samples_per_sec; 
    214 } 
    215  
    216 static void noplc_save(void *plc, pj_int16_t *frame) 
    217 { 
    218     PJ_UNUSED_ARG(plc); 
    219     PJ_UNUSED_ARG(frame); 
    220 } 
    221  
    222 static void  noplc_generate(void *plc, pj_int16_t *frame) 
    223 { 
    224     unsigned samples_per_sec = (unsigned)plc; 
    225     pj_memset(frame, 0, samples_per_sec); 
    226 } 
    227  
Note: See TracChangeset for help on using the changeset viewer.