Changeset 796 for pjproject/trunk


Ignore:
Timestamp:
Nov 10, 2006 6:04:32 PM (18 years ago)
Author:
bennylp
Message:

Fixed overflow bug in conference.c causing cracking noise (thanks Norman Franke)

File:
1 edited

Legend:

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

    r731 r796  
    11411141static pj_uint16_t pcm2unsigned(pj_int32_t pcm) 
    11421142{ 
    1143     return (pj_uint16_t)(pcm + 32767); 
     1143    return (pj_uint16_t)(pcm + 32768); 
    11441144} 
    11451145 
     
    11471147static pj_int16_t unsigned2pcm(pj_uint32_t uns) 
    11481148{ 
    1149     return (pj_int16_t)(uns - 32767); 
     1149    return (pj_int16_t)(uns - 32768); 
    11501150} 
    11511151 
Note: See TracChangeset for help on using the changeset viewer.