summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a30b434)
raw | patch | inline | side by side (parent: a30b434)
author | Edward Hervey <edward.hervey@collabora.co.uk> | |
Thu, 21 Apr 2011 10:54:49 +0000 (12:54 +0200) | ||
committer | Edward 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 | patch | blob | history |
index 098caa5731d176e15d2196b029b63068ee566849..321a0084b1746a4605557e120a7153f5a4c783c2 100644 (file)
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;