[pulseaudio-commits] r1973 - in /trunk/src/pulsecore: core.c resampler.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Mon Oct 29 01:34:36 PDT 2007


Author: lennart
Date: Mon Oct 29 09:34:30 2007
New Revision: 1973

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1973&root=pulseaudio&view=rev
Log:
make speex-float-3 the default resampler

Modified:
    trunk/src/pulsecore/core.c
    trunk/src/pulsecore/resampler.c

Modified: trunk/src/pulsecore/core.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/core.c?rev=1973&root=pulseaudio&r1=1972&r2=1973&view=diff
==============================================================================
--- trunk/src/pulsecore/core.c (original)
+++ trunk/src/pulsecore/core.c Mon Oct 29 09:34:30 2007
@@ -132,7 +132,7 @@
     c->module_idle_time = 20;
     c->scache_idle_time = 20;
 
-    c->resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE;
+    c->resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 3;
 
     c->is_system_instance = 0;
     c->disallow_module_loading = 0;

Modified: trunk/src/pulsecore/resampler.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/resampler.c?rev=1973&root=pulseaudio&r1=1972&r2=1973&view=diff
==============================================================================
--- trunk/src/pulsecore/resampler.c (original)
+++ trunk/src/pulsecore/resampler.c Mon Oct 29 09:34:30 2007
@@ -195,7 +195,7 @@
     }
 
     if (resample_method == PA_RESAMPLER_AUTO)
-        resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 0;
+        resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 3;
 
     r = pa_xnew(pa_resampler, 1);
     r->mempool = pool;
@@ -439,10 +439,10 @@
             return m;
 
     if (!strcmp(string, "speex-fixed"))
-        return PA_RESAMPLER_SPEEX_FIXED_BASE + 0;
+        return PA_RESAMPLER_SPEEX_FIXED_BASE + 3;
 
     if (!strcmp(string, "speex-float"))
-        return PA_RESAMPLER_SPEEX_FLOAT_BASE + 0;
+        return PA_RESAMPLER_SPEEX_FLOAT_BASE + 3;
 
     return PA_RESAMPLER_INVALID;
 }




More information about the pulseaudio-commits mailing list