summaryrefslogtreecommitdiffstats
path: root/filters/filter.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-01-18 14:44:20 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-01-30 03:10:27 -0800
commitb9f804b566c4c528714e4ec5e63675ad7ba5fefd (patch)
tree49d6fcd42ce6597a67aa2af59b7f20beb21a2e14 /filters/filter.h
parent76276c92104c31ee936ba5c76a76072f09978c5f (diff)
downloadmpv-b9f804b566c4c528714e4ec5e63675ad7ba5fefd.tar.bz2
mpv-b9f804b566c4c528714e4ec5e63675ad7ba5fefd.tar.xz
audio: rewrite filtering glue code
Use the new filtering code for audio too.
Diffstat (limited to 'filters/filter.h')
-rw-r--r--filters/filter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/filters/filter.h b/filters/filter.h
index 3fd8af9195..eb554c29c8 100644
--- a/filters/filter.h
+++ b/filters/filter.h
@@ -313,6 +313,8 @@ void mp_filter_reset(struct mp_filter *filter);
enum mp_filter_command_type {
MP_FILTER_COMMAND_TEXT = 1,
MP_FILTER_COMMAND_GET_META,
+ MP_FILTER_COMMAND_SET_SPEED,
+ MP_FILTER_COMMAND_SET_SPEED_RESAMPLE,
};
struct mp_filter_command {
@@ -324,6 +326,9 @@ struct mp_filter_command {
// For MP_FILTER_COMMAND_GET_META
void *res; // must point to struct mp_tags*, will be set to new instance
+
+ // For MP_FILTER_COMMAND_SET_SPEED and MP_FILTER_COMMAND_SET_SPEED_RESAMPLE
+ double speed;
};
// Run a command on the filter. Returns success. For libavfilter.