Commit 57ed9f67 authored by aymeric's avatar aymeric

fix compilation for wince without log10f

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@796 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 9c1fd3ae
......@@ -28,6 +28,7 @@ extern MSFilterDesc ms_conf_desc;
//extern MSFilterDesc ms_h263_dec_desc;
extern MSFilterDesc ms_join_desc;
extern MSFilterDesc ms_resample_desc;
extern MSFilterDesc ms_volume_desc;
extern MSFilterDesc ms_ice_desc;
extern MSFilterDesc ms_void_sink_desc;
MSFilterDesc * ms_filter_descs[]={
......@@ -59,6 +60,7 @@ MSFilterDesc * ms_filter_descs[]={
//&ms_h263_dec_desc,
&ms_join_desc,
&ms_resample_desc,
&ms_volume_desc,
&ms_ice_desc,
&ms_void_sink_desc,
NULL
......
......@@ -1447,6 +1447,10 @@
RelativePath="..\..\src\msticker.c"
>
</File>
<File
RelativePath="..\..\src\msvolume.c"
>
</File>
<File
RelativePath="..\..\src\mswebcam.c"
>
......
......@@ -105,7 +105,11 @@ static void volume_uninit(MSFilter *f){
static int volume_get(MSFilter *f, void *arg){
float *farg=(float*)arg;
Volume *v=(Volume*)f->data;
#ifndef _WIN32_WCE
*farg=10*log10f((v->energy+1)/max_e);
#else
*farg=(float)(10*log10((v->energy+1)/max_e));
#endif
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment