Changeset 345:249bb170cc83 in mediastreamer2
- Timestamp:
- Mar 16, 2009 9:31:01 PM (4 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
linphone/mediastreamer2/src/msconf.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
linphone/mediastreamer2/src/msconf.c
r334 r345 17 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 18 */ 19 20 #ifdef HAVE_CONFIG_H 21 #include "mediastreamer-config.h" 22 #endif 19 23 20 24 #include "mediastreamer2/msfilter.h" … … 259 263 double mystat = 0; 260 264 float fftmul = 1.0 / (32768.0); 261 265 int i; 266 262 267 speex_preprocess_ctl(chan->speex_pp, SPEEX_PREPROCESS_GET_PSD_SIZE, &ps_size); 263 268 ps = (spx_int32_t*)ortp_malloc(sizeof(spx_int32_t)*ps_size); … … 266 271 267 272 mystat = 0; 268 for (i nt i=ps_size/2;i < ps_size; i++) {273 for (i=ps_size/2;i < ps_size; i++) { 269 274 double yp; 275 #if defined(__cplusplus) 270 276 yp = sqrtf(sqrtf(static_cast<float>(ps[i]))) - 1.0f; 277 #else 278 yp = sqrtf(sqrtf((float)(ps[i]))) - 1.0f; 279 #endif 271 280 yp = yp * fftmul; 272 281 yp = MIN(yp * 3000.0, 1.0);
Note: See TracChangeset
for help on using the changeset viewer.
