[pulseaudio-commits] r1720 - in /branches/lennart: configure.ac src/pulsecore/resampler.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sat Aug 25 16:32:37 PDT 2007


Author: lennart
Date: Sun Aug 26 01:32:37 2007
New Revision: 1720

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1720&root=3Dpulseaudio&vi=
ew=3Drev
Log:
enable -ffast-math for gcc

Modified:
    branches/lennart/configure.ac
    branches/lennart/src/pulsecore/resampler.c

Modified: branches/lennart/configure.ac
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/configure.ac?r=
ev=3D1720&root=3Dpulseaudio&r1=3D1719&r2=3D1720&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/configure.ac (original)
+++ branches/lennart/configure.ac Sun Aug 26 01:32:37 2007
@@ -93,7 +93,7 @@
 =

     # We use gnu99 instead of c99 because many have interpreted the standa=
rd
     # in a way that int64_t isn't defined on non-64 bit platforms.
-    DESIRED_FLAGS=3D"-std=3Dgnu99 -Wall -W -Wextra -pedantic -pipe -Wforma=
t -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmiss=
ing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls=
 -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align -W=
write-strings -Winline -Wno-unused-parameter"
+    DESIRED_FLAGS=3D"-std=3Dgnu99 -Wall -W -Wextra -pedantic -pipe -Wforma=
t -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmiss=
ing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls=
 -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align -W=
write-strings -Winline -Wno-unused-parameter -ffast-math"
 =

     for flag in $DESIRED_FLAGS ; do
         AC_MSG_CHECKING([whether $CC accepts $flag])

Modified: branches/lennart/src/pulsecore/resampler.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
resampler.c?rev=3D1720&root=3Dpulseaudio&r1=3D1719&r2=3D1720&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulsecore/resampler.c (original)
+++ branches/lennart/src/pulsecore/resampler.c Sun Aug 26 01:32:37 2007
@@ -741,13 +741,14 @@
 static void speex_free(pa_resampler *r) {
     pa_assert(r);
     =

-    if (r->speex.state) {
-        if (r->resample_method >=3D PA_RESAMPLER_SPEEX_FIXED_BASE && r->re=
sample_method <=3D PA_RESAMPLER_SPEEX_FIXED_MAX) =

-            paspfx_resampler_destroy(r->speex.state);
-        else {
-            pa_assert(r->resample_method >=3D PA_RESAMPLER_SPEEX_FLOAT_BAS=
E && r->resample_method <=3D PA_RESAMPLER_SPEEX_FLOAT_MAX);
-            paspfl_resampler_destroy(r->speex.state);
-        }
+    if (!r->speex.state)
+        return;
+    =

+    if (r->resample_method >=3D PA_RESAMPLER_SPEEX_FIXED_BASE && r->resamp=
le_method <=3D PA_RESAMPLER_SPEEX_FIXED_MAX) =

+        paspfx_resampler_destroy(r->speex.state);
+    else {
+        pa_assert(r->resample_method >=3D PA_RESAMPLER_SPEEX_FLOAT_BASE &&=
 r->resample_method <=3D PA_RESAMPLER_SPEEX_FLOAT_MAX);
+        paspfl_resampler_destroy(r->speex.state);
     }
 }
 =

@@ -761,20 +762,24 @@
     =

     if (r->resample_method >=3D PA_RESAMPLER_SPEEX_FIXED_BASE && r->resamp=
le_method <=3D PA_RESAMPLER_SPEEX_FIXED_MAX) {
         q =3D r->resample_method - PA_RESAMPLER_SPEEX_FIXED_BASE;
-        r->impl_resample =3D speex_resample_int;
-
+
+        pa_log_info("Choosing speex quality setting %i.", q);
+        =

         if (!(r->speex.state =3D paspfx_resampler_init(r->o_ss.channels, r=
->i_ss.rate, r->o_ss.rate, q, &err)))
             return -1;
 =

+        r->impl_resample =3D speex_resample_int;
     } else {
         pa_assert(r->resample_method >=3D PA_RESAMPLER_SPEEX_FLOAT_BASE &&=
 r->resample_method <=3D PA_RESAMPLER_SPEEX_FLOAT_MAX);
         q =3D r->resample_method - PA_RESAMPLER_SPEEX_FLOAT_BASE;
-        r->impl_resample =3D speex_resample_float;
-
+
+        pa_log_info("Choosing speex quality setting %i.", q);
+        =

         if (!(r->speex.state =3D paspfl_resampler_init(r->o_ss.channels, r=
->i_ss.rate, r->o_ss.rate, q, &err)))
             return -1;
-    }
-    =

+
+        r->impl_resample =3D speex_resample_float;
+    }
 =

     return 0;
 }




More information about the pulseaudio-commits mailing list