]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10-ffmpeg.git/commitdiff
audioresample: Use new av_audio_resample API
authorEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 21 Apr 2011 10:54:49 +0000 (12:54 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 21 Apr 2011 18:56:45 +0000 (20:56 +0200)
We might want to expose the various properties in the future

ext/ffmpeg/gstffmpegaudioresample.c

index 098caa5731d176e15d2196b029b63068ee566849..321a0084b1746a4605557e120a7153f5a4c783c2 100644 (file)
@@ -247,9 +247,12 @@ gst_ffmpegaudioresample_set_caps (GstBaseTransform * trans, GstCaps * incaps,
   if (!gst_structure_get_int (outstructure, "rate", &resample->out_rate))
     return FALSE;
 
+  /* FIXME : Allow configuring the various resampling properties */
+#define TAPS 16
   resample->res =
-      audio_resample_init (resample->out_channels, resample->in_channels,
-      resample->out_rate, resample->in_rate);
+      av_audio_resample_init (resample->out_channels, resample->in_channels,
+      resample->out_rate, resample->in_rate,
+      AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S16, TAPS, 10, 0, 0.8);
   if (resample->res == NULL)
     return FALSE;