Ignore:
Timestamp:
Jul 26, 2006 5:04:54 PM (18 years ago)
Author:
bennylp
Message:
  • Bring speex codec up to date with their SVN trunk
  • Speex codec should work in FIXED_POINT mode when PJ_HAS_FLOATING_POINT is set to zero.
  • ulaw2linear will return zero if zero is given (this would make the VAD works better, and it also fixed click noise when call is established/hangup).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/speex/misc.h

    r278 r628  
    3939#define SPEEX_MAJOR_VERSION 1         /**< Major Speex version. */ 
    4040#define SPEEX_MINOR_VERSION 1         /**< Minor Speex version. */ 
    41 #define SPEEX_MICRO_VERSION 12        /**< Micro Speex version. */ 
     41#define SPEEX_MICRO_VERSION 13        /**< Micro Speex version. */ 
    4242#define SPEEX_EXTRA_VERSION ""        /**< Extra Speex version. */ 
    43 #define SPEEX_VERSION "speex-1.1.12"  /**< Speex version string. */ 
     43#define SPEEX_VERSION "speex-1.1.13"  /**< Speex version string. */ 
     44#endif 
     45 
     46/* A couple test to catch stupid option combinations */ 
     47#ifdef FIXED_POINT 
     48 
     49#ifdef _USE_SSE 
     50#error SSE is only for floating-point 
     51#endif 
     52#if ((defined (ARM4_ASM)||defined (ARM4_ASM)) && defined(BFIN_ASM)) || (defined (ARM4_ASM)&&defined(ARM5E_ASM)) 
     53#error Make up your mind. What CPU do you have? 
     54#endif 
     55#ifdef VORBIS_PSYCHO 
     56#error Vorbis-psy model currently not implemented in fixed-point 
     57#endif 
     58 
     59#else 
     60 
     61#if defined (ARM4_ASM) || defined(ARM5E_ASM) || defined(BFIN_ASM) 
     62#error I suppose you can have a [ARM4/ARM5E/Blackfin] that has float instructions? 
     63#endif 
     64#ifdef FIXED_POINT_DEBUG 
     65#error Don't you think enabling fixed-point is a good thing to do if you want to debug that? 
     66#endif 
     67 
     68 
    4469#endif 
    4570 
     
    89114void speex_warning_int(const char *str, int val); 
    90115 
    91 /** Generate a vector of random numbers */ 
    92 void speex_rand_vec(float std, spx_sig_t *data, int len); 
    93  
    94116/** Generate a random number */ 
    95 spx_word32_t speex_rand(spx_word16_t std, spx_int32_t *seed); 
     117spx_word16_t speex_rand(spx_word16_t std, spx_int32_t *seed); 
    96118 
    97119/** Speex wrapper for putc */ 
Note: See TracChangeset for help on using the changeset viewer.