Ignore:
Timestamp:
Jan 9, 2020 9:05:50 AM (4 years ago)
Author:
ming
Message:

Closed #589: Update Speex AEC to the latest version to get multichannel EC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/speex/libspeex/arch.h

    r2002 r6129  
    88   modification, are permitted provided that the following conditions 
    99   are met: 
    10     
     10 
    1111   - Redistributions of source code must retain the above copyright 
    1212   notice, this list of conditions and the following disclaimer. 
    13     
     13 
    1414   - Redistributions in binary form must reproduce the above copyright 
    1515   notice, this list of conditions and the following disclaimer in the 
    1616   documentation and/or other materials provided with the distribution. 
    17     
     17 
    1818   - Neither the name of the Xiph.org Foundation nor the names of its 
    1919   contributors may be used to endorse or promote products derived from 
    2020   this software without specific prior written permission. 
    21     
     21 
    2222   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
    2323   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
     
    5050#error You cannot compile as floating point and fixed point at the same time 
    5151#endif 
    52 #ifdef _USE_SSE 
     52#ifdef USE_SSE 
    5353#error SSE is only for floating-point 
    5454#endif 
     
    7676 
    7777#ifndef OUTSIDE_SPEEX 
    78 #include "speex/speex_types.h" 
     78#include "speex/speexdsp_types.h" 
    7979#endif 
    8080 
     
    9090 
    9191typedef spx_int16_t spx_word16_t; 
    92 typedef spx_int32_t   spx_word32_t; 
     92typedef spx_int32_t spx_word32_t; 
    9393typedef spx_word32_t spx_mem_t; 
    9494typedef spx_word16_t spx_coef_t; 
     
    109109#define SIG_SHIFT    14 
    110110#define GAIN_SHIFT   6 
     111 
     112#define WORD2INT(x) ((x) < -32767 ? -32768 : ((x) > 32766 ? 32767 : (x))) 
    111113 
    112114#define VERY_SMALL 0 
     
    172174#define SATURATE16(x,a) (x) 
    173175#define SATURATE32(x,a) (x) 
     176#define SATURATE32PSHR(x,shift,a) (x) 
    174177 
    175178#define PSHR(a,shift)       (a) 
     
    211214#define PDIV32(a,b)     (((spx_word32_t)(a))/(spx_word32_t)(b)) 
    212215 
    213  
     216#define WORD2INT(x) ((x) < -32767.5f ? -32768 : \ 
     217                    ((x) > 32766.5f ? 32767 : (spx_int16_t)floor(.5 + (x)))) 
    214218#endif 
    215219 
     
    218222 
    219223/* 2 on TI C5x DSP */ 
    220 #define BYTES_PER_CHAR 2  
     224#define BYTES_PER_CHAR 2 
    221225#define BITS_PER_CHAR 16 
    222226#define LOG2_BITS_PER_CHAR 4 
    223227 
    224 #else  
     228#else 
    225229 
    226230#define BYTES_PER_CHAR 1 
Note: See TracChangeset for help on using the changeset viewer.