[pulseaudio-discuss] [PATCH 17/18] resampler: Add the auto resampling implementation

poljar (Damir Jelić) poljarinho at gmail.com
Mon Jul 15 06:48:39 PDT 2013


This adds back the 'auto' resampling method to the supported resampler
methods.
---
 src/pulsecore/resampler.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c
index 673d43b..2ed757f 100644
--- a/src/pulsecore/resampler.c
+++ b/src/pulsecore/resampler.c
@@ -77,6 +77,10 @@ struct pa_resampler {
     pa_resampler_implementation implementation;
 };
 
+static pa_resampler_implementation auto_impl = {
+    .names = { "auto" },
+};
+
 static int copy_init(pa_resampler *r);
 
 static pa_resampler_implementation copy_impl = {
@@ -211,6 +215,7 @@ static pa_resampler_implementation *impl_table[] = {
     [PA_RESAMPLER_SPEEX_FLOAT_BASE] = NULL,
 #endif
     [PA_RESAMPLER_FFMPEG] = &ffmpeg_impl,
+    [PA_RESAMPLER_AUTO] = &auto_impl,
     [PA_RESAMPLER_COPY] = &copy_impl,
     [PA_RESAMPLER_PEAKS] = &peaks_impl,
 };
-- 
1.8.3.2



More information about the pulseaudio-discuss mailing list