Ignore:
Timestamp:
Feb 29, 2008 12:00:46 PM (11 years ago)
Author:
bennylp
Message:

Added pjmedia_wsola_reset()

File:
1 edited

Legend:

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

    r1829 r1831  
    352352    return PJ_SUCCESS; 
    353353} 
     354 
     355 
     356PJ_DEF(pj_status_t) pjmedia_wsola_reset( pjmedia_wsola *wsola, 
     357                                         unsigned options) 
     358{ 
     359    PJ_ASSERT_RETURN(wsola && options==0, PJ_EINVAL); 
     360    PJ_UNUSED_ARG(options); 
     361 
     362    pjmedia_zero_samples(wsola->buf, wsola->cur_cnt); 
     363    wsola->cur_cnt = (pj_uint16_t)(wsola->hist_cnt +  
     364                                   wsola->samples_per_frame); 
     365    return PJ_SUCCESS; 
     366} 
     367 
    354368 
    355369static void expand(pjmedia_wsola *wsola, unsigned needed) 
Note: See TracChangeset for help on using the changeset viewer.