summaryrefslogtreecommitdiffstats
path: root/audio/filter/af.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-13 20:14:02 +0100
committerwm4 <wm4@nowhere>2015-01-13 20:14:02 +0100
commit0bbd65b09cb80ee6a822b27a53e7ddfd5d249cf2 (patch)
treeedf7dcb12a658c2606653cb3b2dcaa3ac3acda99 /audio/filter/af.h
parent9418f884750e2837c51dea9bd300a5e4b3a8f16c (diff)
downloadmpv-0bbd65b09cb80ee6a822b27a53e7ddfd5d249cf2.tar.bz2
mpv-0bbd65b09cb80ee6a822b27a53e7ddfd5d249cf2.tar.xz
audio/filter: remove unused af_calc_filter_multiplier()
The purpose of this function was to filter only as much audio input as needed to produce a certain amount of audio output. This could (in theory) avoid excessive buffering when e.g. changing playback speed with resampling. Use of this was already removed in commit 5fd8a1e0. No problems were experienced, so let's assume this feature is practically worthless. (Though it's possible that it was quite useful over a decade ago, or in some cornercases with evil files.)
Diffstat (limited to 'audio/filter/af.h')
-rw-r--r--audio/filter/af.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/audio/filter/af.h b/audio/filter/af.h
index 682cdb93e3..96758a0cc9 100644
--- a/audio/filter/af.h
+++ b/audio/filter/af.h
@@ -72,9 +72,6 @@ struct af_instance {
struct af_instance *prev;
double delay; /* Delay caused by the filter, in seconds of audio consumed
* without corresponding output */
- double mul; /* length multiplier: how much does this instance change
- * the number of samples passed though. (Ratio of input
- * and output, e.g. mul=4 => 1 sample becomes 4 samples) .*/
bool auto_inserted; // inserted by af.c, such as conversion filters
char *label;
};
@@ -142,7 +139,6 @@ int af_filter(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);
int af_test_output(struct af_instance *af, struct mp_audio *out);