[pulseaudio-commits] r1721 - /branches/lennart/src/pulsecore/resampler.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sat Aug 25 16:40:19 PDT 2007


Author: lennart
Date: Sun Aug 26 01:40:16 2007
New Revision: 1721

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1721&root=3Dpulseaudio&vi=
ew=3Drev
Log:
make floating point speex resampler the default

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

Modified: branches/lennart/src/pulsecore/resampler.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
resampler.c?rev=3D1721&root=3Dpulseaudio&r1=3D1720&r2=3D1721&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:40:16 2007
@@ -160,13 +160,8 @@
         resample_method =3D PA_RESAMPLER_AUTO;
     }
 =

-    if (resample_method =3D=3D PA_RESAMPLER_AUTO) {
-        if (a->format =3D=3D PA_SAMPLE_FLOAT32LE || a->format =3D=3D PA_SA=
MPLE_FLOAT32BE ||
-            b->format =3D=3D PA_SAMPLE_FLOAT32LE || b->format =3D=3D PA_SA=
MPLE_FLOAT32BE)
-            resample_method =3D PA_RESAMPLER_SPEEX_FLOAT_BASE + 0;
-        else
-            resample_method =3D PA_RESAMPLER_SPEEX_FIXED_BASE + 0;
-    }
+    if (resample_method =3D=3D PA_RESAMPLER_AUTO)
+        resample_method =3D PA_RESAMPLER_SPEEX_FLOAT_BASE + 0;
 =

     r =3D pa_xnew(pa_resampler, 1);
     r->mempool =3D pool;




More information about the pulseaudio-commits mailing list