Ignore:
Timestamp:
Nov 30, 2006 1:35:00 AM (14 years ago)
Author:
bennylp
Message:

Implement task #26: integrate table based Alaw/Ulaw?/linear conversion into pjmedia (thanks Toni Rutar for the original contribution)

File:
1 edited

Legend:

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

    r833 r838  
    1818 */ 
    1919#include <pjmedia/conference.h> 
     20#include <pjmedia/alaw_ulaw.h> 
    2021#include <pjmedia/errno.h> 
    2122#include <pjmedia/port.h> 
     
    193194 
    194195 
    195 /* Extern */ 
    196 unsigned char linear2ulaw(int pcm_val); 
    197  
    198196/* Prototypes */ 
    199197static pj_status_t put_frame(pjmedia_port *this_port,  
     
    16711669 
    16721670        /* Convert level to 8bit complement ulaw */ 
    1673         level = linear2ulaw(level) ^ 0xff; 
     1671        level = pjmedia_linear2ulaw(level) ^ 0xff; 
    16741672 
    16751673        /* Put this level to port's last RX level. */ 
Note: See TracChangeset for help on using the changeset viewer.