Changeset 2215:956f710f3279 in roaraudio


Ignore:
Timestamp:
07/27/09 21:55:22 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

test for speex api version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarphone.c

    r2196 r2215  
    2727#include "driver.h" 
    2828 
    29 #ifdef ROAR_HAVE_LIBSPEEX 
     29#if defined(ROAR_HAVE_LIBSPEEX) && !defined(ROAR_HAVE_LIBSPEEXDSP) 
     30#define _SPEEX_API_OLD 
     31#elif defined(ROAR_HAVE_LIBSPEEX) && defined(ROAR_HAVE_LIBSPEEXDSP) 
     32#define _SPEEX_API_NEW 
     33#endif 
     34 
     35#ifdef _SPEEX_API_OLD 
    3036#include <speex/speex_echo.h> 
    3137#endif 
     
    7682} 
    7783 
    78 #ifdef ROAR_HAVE_LIBSPEEX 
     84#ifdef _SPEEX_API_OLD 
    7985int anti_echo_speex16(int16_t * buf, int16_t * aebuf, size_t len, struct roar_audio_info * info) { 
    8086 static SpeexEchoState * state = NULL; 
     
    131137     buf[i] -= aebuf[i]; 
    132138   break; 
    133 #ifdef ROAR_HAVE_LIBSPEEX 
     139#ifdef _SPEEX_API_OLD 
    134140  case AE_SPEEX: 
    135141    return anti_echo_speex16(buf, aebuf, len, info); 
Note: See TracChangeset for help on using the changeset viewer.