diff options
author | wm4 <wm4@nowhere> | 2015-02-10 23:50:17 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-11 00:29:12 +0100 |
commit | b6ab34fc98a4f839a505d3410b87a40286ed2ccc (patch) | |
tree | 5236ad097fae9b3dce38c04c7b99c827dde0adc5 /audio/filter/af.c | |
parent | abbaaaa6e7b565758822fb6aa90ebbb10353f699 (diff) | |
download | mpv-b6ab34fc98a4f839a505d3410b87a40286ed2ccc.tar.bz2 mpv-b6ab34fc98a4f839a505d3410b87a40286ed2ccc.tar.xz |
af_rubberband: pitch correction with librubberband
If "--af=rubberband" is used, librubberband will be used to speed up or
slow down audio with pitch correction.
This still has some problems: the audio delay is not calculated
correctly, so the audio position jitters around by a few milliseconds.
This will probably ruin video timing.
Diffstat (limited to 'audio/filter/af.c')
-rw-r--r-- | audio/filter/af.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/filter/af.c b/audio/filter/af.c index dc534efa5b..bde469db8b 100644 --- a/audio/filter/af.c +++ b/audio/filter/af.c @@ -59,6 +59,7 @@ extern const struct af_info af_info_bs2b; extern const struct af_info af_info_lavfi; extern const struct af_info af_info_convert24; extern const struct af_info af_info_convertsignendian; +extern const struct af_info af_info_rubberband; static const struct af_info *const filter_list[] = { &af_info_dummy, @@ -80,6 +81,9 @@ static const struct af_info *const filter_list[] = { #if HAVE_LADSPA &af_info_ladspa, #endif +#if HAVE_RUBBERBAND + &af_info_rubberband, +#endif &af_info_center, &af_info_sinesuppress, &af_info_karaoke, |