diff options
author | wm4 <wm4@nowhere> | 2014-11-10 20:16:25 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-10 22:02:05 +0100 |
commit | e094e9cb75f9802d8da07eb75cee4d91c9786558 (patch) | |
tree | 84f6ba161fdcb0515c840ca7dd8db60be681dc65 /audio/filter/af.c | |
parent | 995a6af78734820007eb8a1ae3b543fd9d9636e1 (diff) | |
download | mpv-e094e9cb75f9802d8da07eb75cee4d91c9786558.tar.bz2 mpv-e094e9cb75f9802d8da07eb75cee4d91c9786558.tar.xz |
audio: change how filters are inserted on playback speed changes
Use a pseudo-filter when changing speed with resampling, instead of
somehow changing a samplerate somewhere. This uses the same underlying
mechanism, but is a bit more structured and cleaner. It also makes some
of the following changes easier.
Since we now always use filters to change audio speed, move most of the
work set_playback_speed() does to recreate_audio_filters().
Diffstat (limited to 'audio/filter/af.c')
-rw-r--r-- | audio/filter/af.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/filter/af.c b/audio/filter/af.c index 6a3b4bf0d5..d396a73ce3 100644 --- a/audio/filter/af.c +++ b/audio/filter/af.c @@ -53,6 +53,7 @@ extern const struct af_info af_info_center; extern const struct af_info af_info_sinesuppress; extern const struct af_info af_info_karaoke; extern const struct af_info af_info_scaletempo; +extern const struct af_info af_info_forcespeed; extern const struct af_info af_info_bs2b; extern const struct af_info af_info_lavfi; extern const struct af_info af_info_convert24; @@ -83,6 +84,7 @@ static const struct af_info *const filter_list[] = { &af_info_center, &af_info_sinesuppress, &af_info_karaoke, + &af_info_forcespeed, &af_info_scaletempo, #if HAVE_LIBBS2B &af_info_bs2b, |