Ignore:
Timestamp:
Mar 12, 2009 6:11:37 PM (15 years ago)
Author:
bennylp
Message:

(Major) Task #737 and #738: integration of APS-Direct and Audiodev from aps-direct branch to trunk.

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

  • pjproject/trunk/pjmedia/include/pjmedia/alaw_ulaw.h

    r2416 r2506  
    145145 * @param dst       Destination buffer for 8-bit U-Law data. 
    146146 * @param src       Source, 16-bit linear PCM data. 
    147  * @param len       Number of samples. 
     147 * @param count     Number of samples. 
    148148 */ 
    149149PJ_INLINE(void) pjmedia_ulaw_encode(pj_uint8_t *dst, const pj_int16_t *src,  
    150                                     pj_size_t len) 
    151 { 
    152     const pj_int16_t *end = src + len; 
     150                                    pj_size_t count) 
     151{ 
     152    const pj_int16_t *end = src + count; 
    153153     
    154154    while (src < end) { 
     
    162162 * @param dst       Destination buffer for 8-bit A-Law data. 
    163163 * @param src       Source, 16-bit linear PCM data. 
    164  * @param len       Number of samples. 
     164 * @param count     Number of samples. 
    165165 */ 
    166166PJ_INLINE(void) pjmedia_alaw_encode(pj_uint8_t *dst, const pj_int16_t *src,  
    167                                     pj_size_t len) 
    168 { 
    169     const pj_int16_t *end = src + len; 
     167                                    pj_size_t count) 
     168{ 
     169    const pj_int16_t *end = src + count; 
    170170     
    171171    while (src < end) { 
     
    179179 * @param dst       Destination buffer for 16-bit PCM data. 
    180180 * @param src       Source, 8-bit U-Law data. 
    181  * @param len       Number of samples. 
     181 * @param len       Encoded frame/source length in bytes. 
    182182 */ 
    183183PJ_INLINE(void) pjmedia_ulaw_decode(pj_int16_t *dst, const pj_uint8_t *src,  
     
    196196 * @param dst       Destination buffer for 16-bit PCM data. 
    197197 * @param src       Source, 8-bit A-Law data. 
    198  * @param len       Number of samples. 
     198 * @param len       Encoded frame/source length in bytes. 
    199199 */ 
    200200PJ_INLINE(void) pjmedia_alaw_decode(pj_int16_t *dst, const pj_uint8_t *src,  
Note: See TracChangeset for help on using the changeset viewer.