Changeset 345:249bb170cc83 in mediastreamer2


Ignore:
Timestamp:
Mar 16, 2009 9:31:01 PM (4 years ago)
Author:
aymeric <aymeric@…>
Branch:
default
Message:

fix for linux compilation

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@348 3f6dc0c8-ddfe-455d-9043-3cd528dc4637

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linphone/mediastreamer2/src/msconf.c

    r334 r345  
    1717Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
    1818*/ 
     19 
     20#ifdef HAVE_CONFIG_H 
     21#include "mediastreamer-config.h" 
     22#endif 
    1923 
    2024#include "mediastreamer2/msfilter.h" 
     
    259263        double mystat = 0; 
    260264        float fftmul = 1.0 / (32768.0); 
    261  
     265        int i; 
     266         
    262267        speex_preprocess_ctl(chan->speex_pp, SPEEX_PREPROCESS_GET_PSD_SIZE, &ps_size); 
    263268        ps = (spx_int32_t*)ortp_malloc(sizeof(spx_int32_t)*ps_size); 
     
    266271 
    267272        mystat = 0; 
    268         for (int i=ps_size/2;i < ps_size; i++) { 
     273        for (i=ps_size/2;i < ps_size; i++) { 
    269274                double yp; 
     275#if defined(__cplusplus) 
    270276                yp = sqrtf(sqrtf(static_cast<float>(ps[i]))) - 1.0f; 
     277#else 
     278                yp = sqrtf(sqrtf((float)(ps[i]))) - 1.0f; 
     279#endif 
    271280                yp = yp * fftmul; 
    272281                yp = MIN(yp * 3000.0, 1.0); 
Note: See TracChangeset for help on using the changeset viewer.