summaryrefslogtreecommitdiffstats
path: root/audio/filter/af.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-11 23:04:02 +0200
committerwm4 <wm4@nowhere>2015-09-11 23:04:02 +0200
commit4e0e24c3c27362939d9f88d3e22267afef5f6d4f (patch)
tree5d8ad6f4a3ed84071b79e07df48e9bfc818db07f /audio/filter/af.h
parentf095e86b61022613371334d80552b918946b9387 (diff)
downloadmpv-4e0e24c3c27362939d9f88d3e22267afef5f6d4f.tar.bz2
mpv-4e0e24c3c27362939d9f88d3e22267afef5f6d4f.tar.xz
af_lavfi: implement af-metadata property
Works like vf-metadata. Unfortunately requires some code duplication (even though it's not much). Fixes #2311.
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 944ac54427..199486509c 100644
--- a/audio/filter/af.h
+++ b/audio/filter/af.h
@@ -127,6 +127,7 @@ enum af_control {
AF_CONTROL_GET_PAN_BALANCE,
AF_CONTROL_SET_PLAYBACK_SPEED,
AF_CONTROL_SET_PLAYBACK_SPEED_RESAMPLE,
+ AF_CONTROL_GET_METADATA,
};
// Argument for AF_CONTROL_SET_PAN_LEVEL
@@ -145,6 +146,7 @@ int af_remove_by_label(struct af_stream *s, char *label);
struct af_instance *af_find_by_label(struct af_stream *s, char *label);
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);
+int af_control_by_label(struct af_stream *s, int cmd, void *arg, bstr label);
void af_seek_reset(struct af_stream *s);
void af_add_output_frame(struct af_instance *af, struct mp_audio *frame);