summaryrefslogtreecommitdiffstats
path: root/audio/filter/af.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-18 14:18:37 +0100
committerwm4 <wm4@nowhere>2013-11-18 14:21:01 +0100
commitd5bc4ee79864404423ddf2786d8e8089fc46eeca (patch)
treee884a45b31ef0700af7c9bf85af72a322f4ae77c /audio/filter/af.h
parent5594718b6bda3a230e2e2c3cb06d2837c5a02688 (diff)
downloadmpv-d5bc4ee79864404423ddf2786d8e8089fc46eeca.tar.bz2
mpv-d5bc4ee79864404423ddf2786d8e8089fc46eeca.tar.xz
audio: drop buffered filter data when seeking
This could lead to (barely) audible artifacts with --af=scaletempo and modified playback speed.
Diffstat (limited to 'audio/filter/af.h')
-rw-r--r--audio/filter/af.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/filter/af.h b/audio/filter/af.h
index 5c7450721e..7dee490665 100644
--- a/audio/filter/af.h
+++ b/audio/filter/af.h
@@ -99,6 +99,7 @@ struct af_stream {
// Parameters for af_control_*
enum af_control {
AF_CONTROL_REINIT = 1,
+ AF_CONTROL_RESET,
AF_CONTROL_COMMAND_LINE,
AF_CONTROL_SET_RESAMPLE_RATE,
AF_CONTROL_SET_FORMAT,
@@ -125,6 +126,7 @@ void af_uninit(struct af_stream *s);
struct af_instance *af_add(struct af_stream *s, char *name, char **args);
struct mp_audio *af_play(struct af_stream *s, struct mp_audio *data);
struct af_instance *af_control_any_rev(struct af_stream *s, int cmd, void *arg);
+void af_control_all(struct af_stream *s, int cmd, void *arg);
double af_calc_filter_multiplier(struct af_stream *s);
double af_calc_delay(struct af_stream *s);