summaryrefslogtreecommitdiffstats
path: root/audio/filter/af.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio/filter/af.h')
-rw-r--r--audio/filter/af.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/audio/filter/af.h b/audio/filter/af.h
index dc776460aa..3cfdee85dd 100644
--- a/audio/filter/af.h
+++ b/audio/filter/af.h
@@ -182,14 +182,9 @@ double af_calc_delay(struct af_stream *s);
* \{
*/
-/* Helper function called by the macro with the same name only to be
- called from inside filters */
int af_resize_local_buffer(struct af_instance *af, struct mp_audio *data);
-/* Helper function used to calculate the exact buffer length needed
- when buffers are resized. The returned length is >= than what is
- needed */
-int af_lencalc(double mul, struct mp_audio *data);
+#define RESIZE_LOCAL_BUFFER af_resize_local_buffer
/**
* \brief convert dB to gain value
@@ -253,14 +248,4 @@ int af_test_output(struct af_instance *af, struct mp_audio *out);
*/
float af_softclip(float a);
-/** \} */ // end of af_filter group, but more functions of this group below
-
-/** Memory reallocation macro: if a local buffer is used (i.e. if the
- filter doesn't operate on the incoming buffer this macro must be
- called to ensure the buffer is big enough.
- * \ingroup af_filter
- */
-#define RESIZE_LOCAL_BUFFER(a, d) \
- ((a->data->len < af_lencalc(a->mul, d)) ? af_resize_local_buffer(a, d) : AF_OK)
-
#endif /* MPLAYER_AF_H */